You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have you tested with the latest master to confirm the issue still exists?
yes (I guess. I've been usign openapi-generator-maven-plugin version 7.10.0)
Have you searched for related issues/PRs?
yes, but the related issues are really really old or don't fit.
What's the actual output vs expected output?
Non-compilabe code vs compilable code
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
I'm using the openapi-generator-maven-plugin in my spring boot (3) project to generate models and apis according to my OAIs.
I want to use the delegatePattern, but the generated code won't compile.
Bug Report Checklist
yes, and I've pushed it to https://github.com/chiefrocker86/spring-boot-openapi-gen
Yes, using https://oas-validation.com/
yes (I guess. I've been usign openapi-generator-maven-plugin version 7.10.0)
yes, but the related issues are really really old or don't fit.
Non-compilabe code vs compilable code
Description
I'm using the openapi-generator-maven-plugin in my spring boot (3) project to generate models and apis according to my OAIs.
I want to use the delegatePattern, but the generated code won't compile.
The culprit (I guess) lies in the generated controller, which needs to implement the generated API, but doesn't properly.
In this very case the controller should be generated like (I guess)
https://github.com/chiefrocker86/spring-boot-openapi-gen/blob/feature/codegen-expected/src/main/java/org/fkeller/spring/boot/openapi/gen/rest/MessageApiController.java.expected
Of course it could be that I'm using the plugin wrongly.
openapi-generator version
7.10.0
OpenAPI declaration file content or url
https://github.com/chiefrocker86/spring-boot-openapi-gen/blob/feature/codegen-expected/src/main/resources/static/openapi.yml
Generation Details
https://github.com/chiefrocker86/spring-boot-openapi-gen/blob/feature/codegen-expected/pom.xml
Steps to reproduce
git clone https://github.com/chiefrocker86/spring-boot-openapi-gen.git && cd spring-boot-openapi-gen && git checkout feature/codegen-expected && mvn clean verify
Related issues/PRs
Suggest a fix
The generation of the ApiController, which implements the Api should generate the implementation of the methods by using the delegate.
The text was updated successfully, but these errors were encountered: