Skip to main content

parameter-example-and-examples-are-mutually-exclusive

Overview

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

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

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageParameter Object contains both example and examples properties.
CodeOPENAPI3STANDARDS_V099
TypeValidation
Rule SystemSemantic
Broad CategoryParameters
Products ImpactedAPI Transformer, Developer Experience Portal
Tagsopenapi3 openapi standards semantic validation examples example parameter

Suggested Fixes

  • Remove either the example or examples property from the Parameter Object.

For More Information