Skip to main content

unique-operation-tag

Overview

This rule belongs to the openapi-v3-apimatic-linting ruleset and states that:

Avoid duplicate operation tags in OpenAPI to prevent confusion and inconsistencies in the API documentation. Use distinct tags for each set of related operations to improve the API's quality and usability.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDuplicate operation tags found.
CodeOPENAPI3APIMATIC_L233
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Operations
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting tags unique duplicate operation

Suggested Fixes

  • Ensure that OpenAPI specification does not contain any duplicate operation tags.
  • Ensure that each tag represents a distinct set of related operations in the API.
  • Merge or rename the duplicate tags to accurately represent the related operations in the API.

For More Information