Skip to main content

link-operation-id-and-ref-are-mutually-exclusive

Overview

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

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

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageLink Object contains both operationId and operationRef properties.
CodeOPENAPI3STANDARDS_V236
TypeValidation
Rule SystemSemantic
Broad CategoryLinks
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi standards semantic validation operation id operation ref ref link operation

Suggested Fixes

  • Remove either the operationId or operationRef property from the Link Object.

For More Information