unique-operation-id
Overview
This rule belongs to the openapi-v3-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.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Duplicate operation Id found. |
Code | OPENAPI3STANDARDS_V051 |
Type | Validation |
Rule System | Semantic |
Broad Category | Operations |
Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
Tags | openapi3 openapi 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
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#operation-object
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#operation-object
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#openapi-specification
- https://docs.apimatic.io/rulesets/overview/