Skip to main content

header-example-and-examples-are-mutually-exclusive

Overview

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

The properties example and examples in Header Object are mutually exclusive. This means that in a Header Object instance, only one of these properties must be present at a time but not both.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageHeader Object contains both example and examples properties.
CodeOPENAPI3STANDARDS_V251
TypeValidation
Rule SystemSemantic
Broad CategoryHeaders
Products ImpactedAPI Transformer, Developer Experience Portal
Tagsopenapi3 openapi standards semantic validation examples example header

Suggested Fixes

  • Remove either the example or examples property from the Header Object.

For More Information