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

[REQ] [kotlin-server] commonPath in @Path annotation - useTags #20342

Open
feczkob opened this issue Dec 17, 2024 · 1 comment
Open

[REQ] [kotlin-server] commonPath in @Path annotation - useTags #20342

feczkob opened this issue Dec 17, 2024 · 1 comment

Comments

@feczkob
Copy link

feczkob commented Dec 17, 2024

Is your feature request related to a problem? Please describe.

I try to use the kotlin-server generator to generate my interfaces. Currently the Jakarta @Path has a hardcoded "/" argument, see https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/kotlin-server/libraries/jaxrs-spec/api.mustache#L21.

Describe the solution you'd like

I think it would be better if the longest common path would be passed to the @Path annotation, making use of tags for example, like here: https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/libraries/quarkus/api.mustache#L99

@feczkob
Copy link
Author

feczkob commented Dec 18, 2024

I found this PR, it seems to be the implementation for JAXRS: #6130. And this is the generator of Kotlin Spring Server, that already has this useTags: https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinSpringServerCodegen.java#L104.

@feczkob feczkob changed the title [REQ] [kotlin-server] commonPath in @Path annotation [REQ] [kotlin-server] commonPath in @Path annotation - useTags Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant