0

I started out with an openapi specification (3.0.1) design and generated the code with the openapi-generator-maven-plugin (5.1.0) then I used the springdoc-openapi-ui for spring boot (2.5.4).

I needed to manually migrate most of the annotations in the generated code from io.swagger.annotations.* to io.swagger.v3.oas.annotations.* as described here https://springdoc.org/#migrating-from-springfox

I would like to generate the code without manually migrating and could not find out yet which generator to use that would be compatible with springdoc-openapi-ui.

1 Answer 1

2

V3 annotations are not supported at this moment. You could do this by overriding mustache templates.

Or just wait 5.3.1 release with the following changes:

https://github.com/OpenAPITools/openapi-generator/pull/9775

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.