Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityError
MessageRequired property type in Header Object is missing.
CodeSWAGGER20STANDARDS_V221
TypeValidation
Rule SystemSemantic
Broad CategoryResponse Headers
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsswagger2 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.

For More Information