Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smallrye-open-api implements @RequestMapping wrong. Multiple paths are not supported. #2118

Open
geniegeist opened this issue Dec 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@geniegeist
Copy link

Description

Given

@RequestMapping("/path1", "/path2")
@RestController
class OverviewController() 

I expect the following OpenAPI file

paths:
  /path1:
    get: ...
  /path2:
    get: ...

Instead, it produces

paths:
  /path1/path2:
    get: ...

I don't think the output is the correct behaviour. Please let me know. If it is indeed incorrect, I can go ahead and fix it.

@geniegeist geniegeist changed the title Bug: RequestMapping does not support multiple paths Bug: small-rye-openapi implements @RequestMapping wrong. Multiple paths are not supported. Dec 19, 2024
@MikeEdgar
Copy link
Member

Yes, I think your expectation is correct and the current handling should be fixed.

@MikeEdgar MikeEdgar added the bug Something isn't working label Dec 19, 2024
@geniegeist
Copy link
Author

geniegeist commented Dec 19, 2024

Thanks for the clarification. I'll try to implement this behaviour in the next couple of days if you don't mind. I'd like to contribute to this project.

@geniegeist geniegeist changed the title Bug: small-rye-openapi implements @RequestMapping wrong. Multiple paths are not supported. smallrye-open-api implements @RequestMapping wrong. Multiple paths are not supported. Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants