openapi-generator icon indicating copy to clipboard operation
openapi-generator copied to clipboard

[BUG] [jaxrs-spec] Not generating @Deprecated annotations

Open Philzen opened this issue 1 year ago • 1 comments

This came up in #12804.

          This also occurs in the quarkus library.

Originally posted by @KnechtRootrecht in https://github.com/OpenAPITools/openapi-generator/issues/12804#issuecomment-1639804266

Philzen avatar Jun 16 '24 16:06 Philzen

Seems like it's not only quarkus but actually all jaxrs-spec generated code.

Should apply to the whole object here (quarkus sample): https://github.com/OpenAPITools/openapi-generator/blob/master/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/DeprecatedObject.java

In this sample using the default library all of these methods should be annotated as @Deprecated, but they aren't: https://github.com/OpenAPITools/openapi-generator/blob/989a79811a5cae2b10e07e6c4d5261af3da1e39d/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Pet.java#L223-L241

Philzen avatar Jun 16 '24 16:06 Philzen