Skip to main content

unique-operation-id

Overview

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

The id specified in the Operation Object using the operationId property must be unique among all operations described in the current API specification document.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDuplicate operation Id found.
CodeSWAGGER20STANDARDS_V066
TypeValidation
Rule SystemSemantic
Broad CategoryOperations
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsswagger2 swagger standards semantic validation operation id id operation

Suggested Fixes

  • Your operation Id must be unique among ids of all Operation Objects defined in the API document.
  • Ids are compared in a case-sensitive manner.
  • Make sure that the operation Id is not null or empty.

For More Information