Skip to main content

valid-referenced-object

Overview

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

If Reference Object is used for referencing a component located elsewhere, then the type of the referenced component must match with the type of the object in place of which the Reference Object is used. The referenced component must also be valid in accordance with the rules set for the type of the object that uses the Reference Object e.g. if a Reference Object is used for referencing a Parameter Object the rules that apply on the Parameter Object will apply on the referenced component.

PropertyValue
EnabledNo
Maximum SeverityInformation
MessagePossible violations found in referenced object.
CodeOPENAPI3STANDARDS_V312
TypeValidation
Rule SystemSemantic
Broad CategoryReferences
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi standards semantic validation

Suggested Fixes

  • Locate the component manually and fix any issues logged against that component.
  • Confirm that you are not referencing the component incorrectly.
  • Confirm that you are not referencing a component of incorrect type.

For More Information