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.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Duplicate operation Id found. |
| Code | SWAGGER20STANDARDS_V066 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Operations |
| Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
| Tags | swagger2 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.