openapi-directory icon indicating copy to clipboard operation
openapi-directory copied to clipboard

Clarification on PathItem '$ref'

Open floitsch opened this issue 1 year ago • 1 comments
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?

floitsch avatar May 10 '24 12:05 floitsch

I'd recommend asking OpenAPI questions over on the OpenAPI specification repository. Try the discussions page

lornajane avatar Jun 25 '24 07:06 lornajane