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