We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following OpenApi response:
responses: AssignmentList: schema: type: array xml: name: assignments namespace: 'http://...' wrapped: true items: $ref: '#/definitions/TourAssignment'
is generating the following JAXRS-interface:
@Path(...) @Produces(...) @ApiOperation(...) @ApiResponses(value = { @ApiResponse(..., response=TourAssignment.class, responseContainer="List") }) List<TourAssignment> myWebService();
Please note the return type of the web service: List<TourAssignment> I was rather expecting a separate "AssignmentList" java class.
List<TourAssignment>
This is working very fine for json response:
[ { "agentID": "bligny", "assignmentDate": "2019-02-26" } ]
but in case of xml, the produced response is:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <collection xmlns:ns2="http://..."> <ns2:assignment> <ns2:agentID>bligny</ns2:agentID> <ns2:assignmentDate>2019-02-26</ns2:assignmentDate> </ns2:assignment> </collection>
This is in contradiction
Environment:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following OpenApi response:
is generating the following JAXRS-interface:
Please note the return type of the web service:
List<TourAssignment>
I was rather expecting a separate "AssignmentList" java class.
This is working very fine for json response:
but in case of xml, the produced response is:
This is in contradiction
Environment:
The text was updated successfully, but these errors were encountered: