swagger-core
swagger-core copied to clipboard
Request Body not picked up by Scanners
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
This won't be able to be changed until M3. Pushing to next milestone.
This should be fixed now.