payara / Payara

Payara Server is an open source middleware platform that supports reliable and secure deployments of Java EE (Jakarta EE) and MicroProfile applications in any environment: on premise, in the cloud or hybrid.
http://www.payara.fish
Other
883 stars 306 forks source link

Bug Report: The OpenApi @Schema "name" property does not rename annotated class attribute/FISH-5778 #5429

Open silvafabio opened 3 years ago

silvafabio commented 3 years ago

Description


When annotate an class attribute with @Schema(name = "newName") the attribute appear twice at the generated documentation, one with old name and one with the new name.

Expected Outcome

Only one occurence with the new name.

Current Outcome

Appear twice at the generated documentation, one with old name and one with the new name.

Steps to reproduce

Reproduce project attached.

payara-openapi-schema-name-error.zip

Run the project and call /openapi endpoint.

Environment

shub8968 commented 3 years ago

Hi @silvafabio, I am able to reproduce this issue. I have raised an internal issue with JIRA FISH-5778. Thanks. It may take a while to fix the issue. You are free to submit a PR to fix this issue if you feel confident to do so.