reference-object-description-overrides-referenced-object-description
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 and also specified in the object referenced using $ref, the Reference Object level description will override the one provided in the referenced object.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Information |
| Message | Description specified in the Reference Object overrides the description provided in the referenced object. |
| Code | OPENAPI3STANDARDS_L143 |
| Type | Linting |
| Rule System | Semantic |
| Broad Category | References |
| Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
| Tags | openapi3 openapi standards semantic linting description reference ref $ref |
Suggested Fixes
- If you do not want the description in the referenced object to be overridden this way, remove the
descriptionproperty from the Reference Object.