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
MultivaluedMap can not be parsed in POST body of JAX-RS method #172
Comments
closing as not supported |
Any chance this will be supported in the future? @fehguy : Your answer on Stackoverflow suggested
|
I understand that Swagger cannot read my mind for the multi-value map. But I'd be glad to add arguments to the annotation, whatever helps. Is this simply a dead-end road? Those of us with flexible search interfaces still would like to document them .. |
@chrisinmtown Swagger/OpenAPI 2.0 does not support that, however, OAS3 might be able to. Would suggest filing a new ticket for it. |
Please forgive my ignorance, what's OAS 3.0 and where would I file that new ticket? |
OAS3 is OpenAPI 3.0, the new version of the spec. And you would file the new ticket on this repo, with an explanation of what you'd like to achieve. |
I'm opening this issue based on this question on StackOverflow - I can confirm that it still occurs:
Basically, Swagger doesn't seem to parse javax.ws.rs.core.MultivaluedMaps.
A method like this:
@post
@ApiOperation("fake operation")
@path("/add")
public Response addStudentGroup(@ApiParam("fake param") MultivaluedMap<String, String> formParams) {}
will generate the following resource response:
}
Making "allowMultiple=true" within the @ApiParam doesn't help.
The text was updated successfully, but these errors were encountered: