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

Set tags for operations at class-level

Open EagleInNight opened this issue 4 years ago • 1 comments

Is there a way to set tag names for all operations at class level, as it could be done with @Api(tags = "...", value = "...")?

I found related issue https://github.com/swagger-api/swagger-core/issues/2534, where mentioned that I could specify @Tag at class level and it will do the job, but..

I tried to replace @Api with @Tag(name = "...", description = "..."), but all operations still have tag with name auto-generated from controller class name.

EagleInNight avatar Jul 23 '21 14:07 EagleInNight

It should look something like this:

...
@Tag(name = "Thing", description = "Thing description")
public class ThingController {
...
Mapping methods
...
}

NoobPete avatar Jul 29 '22 19:07 NoobPete