swagger-core: 1.5.x: ApiImplicitParams annotation is ignored
When I first noticed this bug I thought it happens only when I use ApiParam and ApiImplicitParams at the same time.
Looks like ApiImplicitParams is ignored in any case. As result I can’t document security token which intercepted by servlet filter earlier.
Here is endpoint
@GET
@Consumes("text/plain")
@Produces(MediaType.APPLICATION_JSON)
@Path("testParams")
@ApiOperation(response = String.class, value = "Returns string with provided parameter")
@ApiImplicitParams({@ApiImplicitParam(name = "token", required = true, dataType = "string", paramType = "query", value = "API token")})
public String testParams(@ApiParam(required = false, value = "ID of timesheet") @QueryParam("id") int id) {}
Example project is located at https://github.com/cppexpert/broken_swagger_jaxrs_integration
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 52 (25 by maintainers)
I just wanna know in annotation @ApiImplicitParam how to describe a parameter’s length.Such as there is a parameter is String and I wanna the client who send a request know what is the max length and min length of this string by swagger? Thank you.
Wow, I’ll get wasted today if it works.
Can anyone offer insight on where the fix needs to happen? I need this a.s.a.p. and am happy to fix it myself but some pointers in the right direction would greatly help.
Any update on this issue? It seems that there is no reference of @ApiImplicitParams in source code even though the documentation is complete.