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-spring] Spring request mapping mode #18884

Closed
pstorch opened this issue Jun 8, 2024 · 0 comments · Fixed by #18896
Closed

[REQ] [kotlin-spring] Spring request mapping mode #18884

pstorch opened this issue Jun 8, 2024 · 0 comments · Fixed by #18896

Comments

@pstorch
Copy link
Contributor

pstorch commented Jun 8, 2024

I stumbled upon an issue with the RequestMapping annotations on the Api interfaces and ApiController classes.
Spring Boot doesn't load my controllers correctly. The beans are instantiated but the HandlerMapping.Mappings is not recognizing the controllers.
When I remove the @RequestMapping("\${api.base-path:}") annotation it works.

Can we have the same requestMappingMode option for kotlin-spring as for the java-spring generator?
Like: #13838

pstorch added a commit to pstorch/openapi-generator that referenced this issue Jun 10, 2024
… the generated class level RequestMapping annotation

Based on OpenAPITools#13838 but for kotlin-spring.

Fixes OpenAPITools#18884
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant