Skip to content

Are tags with different descriptions possible? #1962

Answered by MikeEdgar
cristalp asked this question in Q&A
Discussion options

You must be logged in to vote

Tag name and description are unique, and only declared in the top-level tags array of the OpenAPI doc. The operations themselves simply reference the tag(s) by name that apply to the operation. The @Tag annotation tries to make it more convenient by allowing you to declare the description and docs directly on the operations, but ultimately they are placed in the top-level array. If duplicate tag names are encountered, the description that is chosen is undefined.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by cristalp
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants