Swagger (ui) is not generating correct sample xml for @XmlRootElement #2630
Labels
Comments
|
This can be easily implemented as a plugin that copies JacksonXmlModelPlugin |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TLDR
a) request parameters ~~~unless there is also a @JacksonXmlRootElement present~~~
b) return types
Steps to Reproduce
An example of the above bugs is in https://github.com/elonderin/springfox-swagger2-bug-xmlrootelement.
This is a fork of gs-rest-service that i extended for this case with these models:
Case: the general models representation at the bottom of the page
Case: @XmlRootElement.name is not considered in sample XML for request parameters unless there is also a @JacksonXmlRootElement present
/post<Greeting>but should be<greeting-jaxb>/post2The text was updated successfully, but these errors were encountered: