This rule checks for schemas that define multiple tags with the same name, considering tag names as case-insensitive.
Duplicate tag names can lead to confusion and misinterpretation of the API’s structure.
The tags-unique
rule is designed to ensure that all tags defined in a schema
have unique names. Names are considered case-insensitive.
None.
Good.
tags:
- name: User
- name: Product
Bad.
tags:
- name: user
description: First tag
- name: User
description: Is this another tag, or a typo ?
We recommend to always enable this rule.
This rule is compatible with all OpenAPI 3.x versions.