unique-response-header-enum-list-entries
Overview
This rule belongs to the swagger-v2-standards-validation ruleset and states that:
The enumeration list declared using the enum property for the header object, must not contain any duplicate values i.e. they must all be unique.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Duplicate header object enum entry found. |
| Code | SWAGGER20STANDARDS_V233 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Response Headers |
| Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
| Tags | swagger2 swagger standards semantic validation enum header json schema validation json schema |
Suggested Fixes
- Ensure that no duplicate values are contained within the enumeration list.
- Enum values are compared in a case-sensitive manner.