Skip to main content

non-empty-media-type-examples-key

Overview

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

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

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageEmpty media type example key found.
CodeOPENAPI3DOCSGEN_L463
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Media Types
Products ImpactedDeveloper Experience Portal
Tagsdocumentation generation documentation docs openapi3 openapi semantic linting apimatic examples example key name media type

Suggested Fixes

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

For More Information