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.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Warning |
Message | Example Object contains both value and externalValue properties. |
Code | OPENAPI3STANDARDS_V225 |
Type | Validation |
Rule System | Semantic |
Broad Category | Examples |
Products Impacted | API Transformer, Developer Experience Portal |
Tags | openapi3 openapi standards semantic validation value example |
Suggested Fixes
- Remove either the
value
orexternalValue
property from the Example Object.
For More Information
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#example-object
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#example-object
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#openapi-specification
- https://docs.apimatic.io/rulesets/overview/