Skip to main content

path-item-field-either-in-referenced-or-defined-object

Overview

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

In case a Path Item Object field appears both in the defined object and the referenced object, the behavior is undefined.

PropertyValue
EnabledYes
Maximum SeverityInformation
MessagePath item field exists in both the referenced and defined objects.
CodeOPENAPI3STANDARDS_L030
TypeLinting
Rule SystemSemantic
Broad CategoryPath Items
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi standards semantic linting path item path reference json pointer ref $ref

Suggested Fixes

  • Remove any other properties from the reference Path Item Object (i.e. one that contains the $ref property) and relocate them in the defined object instead.

For More Information