Skip to main content

spec-example-values

Validates mutually exclusive value fields in OpenAPI 3.2 Example Objects.

AttributeValue
CategoryExamples
MaturitySilver
OpenAPIOpenAPI 3.2 only
LenientWarning
Recommended–CompleteError

Flags

Conflicting pairs: value with externalValue, dataValue, or serializedValue; and serializedValue with externalValue.

See it fail

example:
value: { status: paid }
dataValue: application/json;base64,eyJzdGF0dXMiOiJwYWlkIn0=

Fix it

Keep one representation appropriate to the example.

Nearby: no-example-value-and-externalValue.