swagger-core
swagger-core copied to clipboard
Set tags for operations at class-level
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.
It should look something like this:
...
@Tag(name = "Thing", description = "Thing description")
public class ThingController {
...
Mapping methods
...
}