In #2972, #6108, #5478, and many others there are complaints about old libraries/annotations being used in various Java generators. As a user of OpenAPI Generator who works in a number of Java toolkits/frameworks, I would like to see the AbstractJavaCodegen and all child generators updated to allow the use of the latest annotations and features of OpenAPI.
v5.0.0 Beta
I will be preparing a fork/branch which I will link in the comments below.
The work I am doing will be track in this branch:
Design Goals:
x- extensions to the API Spec will be a reasonable meansTo start, I think that adding a non-functional (for now) option in AbstractJavaCodegen which says something like preferOpenAPIv3 and then proceeding to update each set of templates from there makes sense. Any thoughts @macjohnny?
This would allow the default to continue using the existing templates/functionality and have no impact on backward compatibility. As the community goes through and adds support to the inheriting codegen implementations we could use that option as it becomes available.
@InfoSec812 Sounds good
Most helpful comment
The work I am doing will be track in this branch:
https://github.com/InfoSec812/openapi-generator/tree/Issue_7112-_-Refactor_AbstractJavaCodegen_and_inheritors
Design Goals:
x-extensions to the API Spec will be a reasonable means