no-allow-empty-value-in-header
Overview
This rule belongs to the openapi-v3-standards-linting ruleset and states that:
Property allowEmptyValue is only valid for query parameters (i.e. parameter location is set to query) and allows sending a parameter with an empty value. This property cannot be used inside a header.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Warning |
| Message | Property allowEmptyValue is used for a header. |
| Code | OPENAPI3STANDARDS_L130 |
| Type | Linting |
| Rule System | Semantic |
| Broad Category | Headers |
| Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
| Tags | openapi3 openapi standards semantic linting empty value header |
Suggested Fixes
- Remove property
allowEmptyValuefrom the current Header Object.