Skip to content

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

@feczkob

Description

@feczkob

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#L107

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions