unique-parameter-definition-name
Overview
This rule belongs to the swagger-v2-standards-validation
ruleset and states that:
The parameter definitions keys are patterned fields that must have unique values within the Parameter Definitions Object. The keys represent the names of the parameter definitions that can be reused across operations.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Duplicate entry found for parameter definition name in the Parameter Definitions Object. |
Code | SWAGGER20STANDARDS_V351 |
Type | Validation |
Rule System | Semantic |
Broad Category | Reusable Definitions |
Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
Tags | swagger2 swagger standards semantic validation name parameter definitions parameter definitions object |
Suggested Fixes
- Remove duplicate parameter definition name entries from the Parameter Definitions Object.
- Parameter definition key value is compared in a case-sensitive manner.