required-response-header-type
Overview
This rule belongs to the swagger-v2-standards-validation
ruleset and states that:
The Header Object must specify the type of the object using the type
property.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Required property type in Header Object is missing. |
Code | SWAGGER20STANDARDS_V221 |
Type | Validation |
Rule System | Semantic |
Broad Category | Response Headers |
Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
Tags | swagger2 swagger standards semantic validation type header object header |
Suggested Fixes
- Add missing
type
property in the Header Object. - Make sure that the
type
property is not null or empty.