unique-path-item-parameter
Overview
This rule belongs to the swagger-v2-standards-validation
ruleset and states that:
The parameters list provided using the 'parameters' property in the Path Item Object must not include any duplicate parameter definitions. A unique parameter is defined by a combination of its name and location.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Duplicate entry found for parameter in the Path Item level parameters. |
Code | SWAGGER20STANDARDS_V051 |
Type | Validation |
Rule System | Semantic |
Broad Category | Path Items |
Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
Tags | swagger2 swagger standards semantic validation parameters parameter name location path |
Suggested Fixes
- Remove duplicate entry of a parameter from the parameters list.
- If name and location of a parameter matches with that of some other parameter entry, remove one of such entries.
- Parameter names are compared in a case-sensitive manner.