Skip to main content

single-entry-header-content-map

Overview

This rule belongs to the openapi-v3-standards-validation ruleset and states that:

The content property of the Header Object is a map that contains representations of the header such that the key represents the media type while the value describes the header schema. This content map must contain only one entry.

PropertyValue
EnabledYes
Maximum SeverityError
MessageHeader content map contains more than one entries.
CodeOPENAPI3STANDARDS_V254
TypeValidation
Rule SystemSemantic
Broad CategoryHeaders
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi standards semantic validation map content schema header

Suggested Fixes

  • Keep only one entry in the header content map and remove all others.

For More Information