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] Generate classes with Swagger 3 (OpenAPI) annotations #10814

Closed
kdebski85 opened this issue Nov 9, 2021 · 2 comments
Closed

[REQ] Generate classes with Swagger 3 (OpenAPI) annotations #10814

kdebski85 opened this issue Nov 9, 2021 · 2 comments

Comments

@kdebski85
Copy link

Currently, OpenAPI generator generates Java classes with annotations like io.swagger.annotations.Api from Swagger 2 (io.swagger:swagger-annotations).

These annotations are incompatible with OpenAPI projects like Springdoc (https://springdoc.org/).

OpenAPI generator should instead generate classes with Swagger 3 (OpenAPI) annotations (io.swagger.core.v3:swagger-annotations). I do not see any reason why to still use Swagger 2 annotations.

@baurceanu
Copy link
Contributor

baurceanu commented Nov 15, 2021

@kdebski85 hi, is this the feature that you want? If so it was merged to master branch recently and will be included in the next release

@kdebski85
Copy link
Author

@baurchanu This is exactly what I need. I hope 5.4.0/6.0.0 will be released soon, so I can try it.
Thank you!

Maybe after a few releases, the default value of oas3 parameter should switch to true

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

2 participants