The @ApiImplicitParam annotation does not replace the definition done by 
@QueryParam (Jersey).

I am thinking, could we program this? Example:

@ApiImplicitParam(name="JSONquery", replace = "query")

Complete example:

@GET

@ApiImplicitParam(name = "query", value = "A query in the form of JSON 
serialized Query.class",
    required = true, dataType = "my.package.Query", paramType = "query",
    example = 
"{\"max_decimals\":-1,\"page\":1,\"pageSize\":20,\"version\":false}",
    replace = "query"
)
public List<Map<String,Object>> queryGetV2(
    @ApiParam(value = "A Query object serialized as JSON.", name = "query", 
required = true, hidden = false)
    @QueryParam(value = "query")
final Query query
) { }


N.B. The second example shows a use case which is not supported in OpenAPI 
standard (query data type is not primitive (number/string).


-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to