Payara icon indicating copy to clipboard operation
Payara copied to clipboard

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

Open silvafabio opened this issue 4 years ago • 1 comments

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

  • Distribution: 5.2021.7 Server Full Profile
  • JDK Version: zulu8.40.0.25-ca-jdk8.0.222-linux_x64
  • Operating System: Linux

silvafabio avatar Sep 29 '21 20:09 silvafabio

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.

shub8968 avatar Oct 03 '21 18:10 shub8968