Skip to content
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

@ApiImplicitParam not working #71

Open
AswathyZ opened this issue Oct 5, 2015 · 1 comment
Open

@ApiImplicitParam not working #71

AswathyZ opened this issue Oct 5, 2015 · 1 comment

Comments

@AswathyZ
Copy link

AswathyZ commented Oct 5, 2015

I need to use @ApiImplicitParam(https://github.com/swagger-api/swagger-core/wiki/Annotations#apiimplicitparam-apiimplicitparams) in my project. But it was not working.

The dropwizard-swagger version used is 0.7.0

The issue can be reproduced by adding the following method in SampleResoucrce.java in dropwizard-swagger-sample-app (1.0-SNAPSHOT)

@GET
@Path( "/addUserWithToken" )
@ApiOperation( "Sample header param" )
@ApiImplicitParams({@ApiImplicitParam(name = "authToken", required = true, dataType = "string", paramType = "header")})
public Response addUserWithToken(@QueryParam( "name" )
String name )
{

    return Response.ok( new SamplePojo( name,2313 ) ).build();

}

The generated swagger.json didn't have the params listed in ApiImplicitParams.
Could you please have a look?

@tfeak
Copy link

tfeak commented Oct 10, 2015

#70

It's a bug in an older version of the swagger libraries. It needs to be updated, but that requires repackaging because the bug is fixed after Swagger switched package names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants