Skip to main content

valid-header-example

Overview

This rule belongs to the openapi-v3-docsgen-linting ruleset and states that:

Example value provided for the header object should conform to the header schema.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageInvalid header example found.
CodeOPENAPI3DOCSGEN_L662
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Headers
Products ImpactedDeveloper Experience Portal
Tagsdocumentation generation documentation docs openapi3 openapi semantic linting apimatic header example examples schema

Suggested Fixes

  • Provide valid example value for header object.
  • Exmaple value should conform to the schema defined in header object.

For More Information