Skip to main content

unique-tag-name

Overview

This rule belongs to the swagger-v2-standards-validation ruleset and states that:

The list of root Swagger 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.
CodeSWAGGER20STANDARDS_V261
TypeValidation
Rule SystemSemantic
Broad CategoryTags
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsswagger2 swagger 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