Open coiouhkc opened 2 months ago
Initial implementation in https://github.com/OpenAPITools/openapi-generator/pull/16259;
@rodrigoma3, @borsch was there a particular reason to only include the extension into SpringCodegen
?
If [REQ] is accepted, happy to work on a PR.
Initial implementation in #16259; @rodrigoma3, @borsch was there a particular reason to only include the extension into
SpringCodegen
?
No special reason, I followed the X_PATTERN_MESSAGE path and validated only SpringCodegen. But I agree with your request.
Is your feature request related to a problem? Please describe.
x-operation-extra-annotation
provides a possibility to add e.g.@RolesAllowed
annotation inSpringCodegen
Describe the solution you'd like
Move the vendor extension up the hierarchy to
AbstractJavaCodegen
so that other java generators (jaxrs-spec
, etc.) could profit from it.It would also make it consistent with current implementation which includes both
x-class-extra-annotation
andx-field-extra-annotation
, see https://github.com/rodrigoma3/openapi-generator/blob/e2f8436ab2bc800e6378e804118181e0550cac53/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java#L2323-L2324Describe alternatives you've considered
None
Additional context
-