swagger-core icon indicating copy to clipboard operation
swagger-core copied to clipboard

Request Body not picked up by Scanners

Open shivangshah opened this issue 11 years ago • 2 comments

The previous scanners were able to pickup Body parameters without any @ApiParam now I had to do something like this for it to pickup body parameters: BEFORE:

public Response create(@ApiParam(value = "someHeader", required = true)
            @HeaderParam("someHeader") String header, String jsonBody) {

AFTER

public Response create(@ApiParam(value = DATASOURCE_HEADER, required = true)
                        @HeaderParam("someHeader") String header,
            @ApiParam(value = "jsonBody", required = true) String jsonBody) {

Discussion with @fehguy can be found here #925

shivangshah avatar Mar 29 '15 16:03 shivangshah

This won't be able to be changed until M3. Pushing to next milestone.

fehguy avatar Mar 30 '15 04:03 fehguy

This should be fixed now.

fehguy avatar May 19 '15 21:05 fehguy