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

description specified in @APi annotation doens't apear on doc page

Open jnovotny opened this issue 9 years ago • 1 comments

Hi,

In my resource class, I have:

@Api(value = "/calendar", description="The Holiday API")

However when I look at localhost:8080/swagger, I see:

screen shot 2016-02-21 at 12 34 22 pm which oddly displays the description of the last

@ApiOperation( value = "Get next business day", notes = "Returns the next business day fom the supplied date expressed as YYYY-mm-dd.", response = HolidayResponse.class ) method in my class..

Is this a bug or am I missing some configuration? Thanks, Jason

jnovotny avatar Feb 21 '16 17:02 jnovotny

I had the same problem, but I found it is fixed in this fork: https://github.com/smoketurner/dropwizard-swagger. It doesn't actually show the description, but at least it doesn't show the wrong value.

EnigmaCurry avatar Mar 14 '16 21:03 EnigmaCurry