unique-response-definition-name
Overview
This rule belongs to the swagger-v2-standards-validation
ruleset and states that:
The response definitions keys are patterned fields that must have unique values within the Response Definitions Object. The keys represent the names of the response definitions that can be reused across operations.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Duplicate entry found for response definition name in the Response Definitions Object. |
Code | SWAGGER20STANDARDS_V352 |
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 response definitions response definitions object |
Suggested Fixes
- Remove duplicate response definition name entries from the Response Definitions Object.
- Response definition key value is compared in a case-sensitive manner.