You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding @Schema information to a POJO attribute, the generated schema information on OpenAPI diverges when adding a description. The target description is meant only for the field information and not the type.
For example:
Describe the bug
When adding
@Schema
information to a POJO attribute, the generated schema information on OpenAPI diverges when adding adescription
. The target description is meant only for the field information and not the type.For example:
Generates:
Wheres the same place you add:
Ends up generating:
Expected behavior
Actual behavior
How to Reproduce?
Created sample project with annotated POJOs here: https://github.com/cristianonicolai/quarkus-playground
Sample annotated field: https://github.com/cristianonicolai/quarkus-playground/blob/main/src/main/java/org/acme/Configuration.java#L7
Generated OpenAPI schema: https://github.com/cristianonicolai/quarkus-playground/blob/main/openapi/openapi.json#L14
Output of
uname -a
orver
No response
Output of
java -version
No response
Quarkus version or git rev
3.17.7
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.9
Additional information
No response
The text was updated successfully, but these errors were encountered: