Skip to main content

required-array-response-header-items

Overview

This rule belongs to the swagger-v2-standards-validation ruleset and states that:

The Header Object of type array must specify items for the array using items property. This property describes the type of items in the array.

PropertyValue
EnabledYes
Maximum SeverityError
MessageRequired items property of array type Header Object is missing.
CodeSWAGGER20STANDARDS_V223
TypeValidation
Rule SystemSemantic
Broad CategoryResponse Headers
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsswagger2 swagger standards semantic validation array header header object items items object type

Suggested Fixes

  • Add missing items property in the Header object.
  • Ensure that the items property provides a valid Items Object definition and is not set as null.

For More Information