#Description option on @ApiTags decorator

6 messages · Page 1 of 1 (latest)

sudden egret
#

Hi all!
I want to add a description to a tag in swagger. The only way I can find is to add a tag to the Swagger DocumentBuilder object like this:

const builder = new DocumentBuilder();
builder.addTag('Health', 'Health check endpoints');

But as far as I can tell by the source code the @ApiTags('Health') only supports a spreaded array of tag strings as parameters, and no object or optional second parameters to provide an description.
It would be nice if the @ApiTags decorator functioned the same as the @ApiSecurity which allows a string as well as an option object for more customisable functionality.

Are there any plans to implement such feature?

calm marsh
#

Is adding a description to tags part of the Open API standard?

calm marsh
sudden egret
#

Oh, right 🥲
Thanks for the help