unique-response-http-status-code
Overview
This rule belongs to the swagger-v2-standards-validation
ruleset and states that:
Response keys are patterned fields that must have unique values within the Responses Object. The keys represent the HTTP status code for each response.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Duplicate response status code entry found. |
Code | SWAGGER20STANDARDS_V181 |
Type | Validation |
Rule System | Semantic |
Broad Category | Responses |
Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
Tags | swagger2 swagger standards semantic validation responses status code status http |
Suggested Fixes
- Remove duplicate response status code entries from the Responses Object.
- Response key value is compared in a case-sensitive manner.