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

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

Open
Philzen opened this issue Jun 16, 2024 · 1 comment
Open

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

Philzen opened this issue Jun 16, 2024 · 1 comment

Comments

@Philzen
Copy link
Contributor

Philzen commented Jun 16, 2024

This came up in #12804.

          This also occurs in the quarkus library.

Originally posted by @KnechtRootrecht in #12804 (comment)

@Philzen
Copy link
Contributor Author

Philzen commented Jun 16, 2024

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

Should apply to the whole object here (quarkus sample): https:/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:

/**
* pet status in the store
**/
public Pet status(StatusEnum status) {
this.status = status;
return this;
}
@ApiModelProperty(value = "pet status in the store")
@JsonProperty("status")
public StatusEnum getStatus() {
return status;
}
@JsonProperty("status")
public void setStatus(StatusEnum status) {
this.status = status;
}

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

1 participant