openapi-directory
openapi-directory copied to clipboard
Clarification on PathItem '$ref'
trafficstars
The spec states that the '$ref' field in a Path Item Object (https://spec.openapis.org/oas/latest.html#path-item-object) allows for a referenced definition of this path item.
Why does the Paths Object (4.8.8 just above) not simply have a type [Path Item Object | Reference Object]?
Is it to be treated differently?
I'd recommend asking OpenAPI questions over on the OpenAPI specification repository. Try the discussions page