Skip to main content

unique-tag-name

Overview

This rule belongs to the openapi-v3-standards-validation ruleset and states that:

The list of root OpenAPI Object level tags must have a unique name assigned to them in the Tag Object definition using the name property.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDuplicate name for tag found.
CodeOPENAPI3STANDARDS_V301
TypeValidation
Rule SystemSemantic
Broad CategoryTags
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi standards semantic validation name tags tag

Suggested Fixes

  • Make sure that all Tag Object definitions in the tags list have unique names assigned to them.
  • Remove entries of tags that have equal names.
  • Tag names are compared in a case-sensitive manner.

For More Information