Skip to main content

non-empty-header-examples-key

Overview

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

The example name/key in header object level examples object is used to uniquely define an example value. Therefore, it should not be empty.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageEmpty key found for example object defined in header object.
CodeOPENAPI3DOCSGEN_L664
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Headers
Products ImpactedDeveloper Experience Portal
Tagsdocumentation generation documentation docs openapi3 openapi semantic linting apimatic header example examples key name

Suggested Fixes

  • Assign user friendly names to example object defined in header examples object.

For More Information