Skip to main content

referenced-object-allows-description-override

Overview

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

If the property description is specified in the Reference Object as a sibling of property $ref, it is expected to override one specified in the referenced object provided that the referenced object supports a description. If it does not, the Reference Object level description has no effect.

PropertyValue
EnabledYes
Maximum SeverityInformation
MessageThe referenced object does not support a description, therefore, the description override provided in the Reference Object has no effect.
CodeOPENAPI3STANDARDS_L144
TypeLinting
Rule SystemSemantic
Broad CategoryReferences
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi standards semantic linting description reference ref $ref

Suggested Fixes

  • Remove the description property from the Reference Object as it has no effect on the referenced object.

For More Information