-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
@XmlElement not working correctly on Fields #502
Comments
I have the same issue. I just want to clarify that the field appears in api docs, but with the wrong name ("name" instead of "pet_name"). |
@XmlElementon works fine on getter function. So make your field private and access it through getters and setters |
You are right, @xmlelement does work. But @XmlAttribute doesn't. |
fixed in d9fafcd |
Hi Folks! Shouldn't this work on fields also? I'm pretty sure JAX-RS does not pose any restriction on the definition for XmlElement. Other than that, it makes difficult to have swagger working properly with project lombok. |
@feliperoos you commented on an issue from over a year ago, which is not even relevant to the current stable version. If you have an issue with the 1.5.X versions, please open a new ticket and provide details so we can try and help. Keep in mind that by default the new swagger-core doesn't support JAXB annotations but the support can be added manually. |
If I use @XmlElementon a Filed, it will only work if Field name is same as provided in XmlElement e.g
But if field name is different from the one provided in XmlElement field will not appear in api docs
The text was updated successfully, but these errors were encountered: