Skip to main content

example-value-and-external-value-are-mutually-exclusive

Overview

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

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

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageExample Object contains both value and externalValue properties.
CodeOPENAPI3STANDARDS_V225
TypeValidation
Rule SystemSemantic
Broad CategoryExamples
Products ImpactedAPI Transformer, Developer Experience Portal
Tagsopenapi3 openapi standards semantic validation value example

Suggested Fixes

  • Remove either the value or externalValue property from the Example Object.

For More Information