Closed tuzkov closed 5 years ago
pi isn't a valid schema, so we have no idea how to deal with it. This is according to the spec that says definitions should only contain schemas. Your property definitions.pi is not that, it's a free form json structure, where we don't know in which positions a $ref would occur
PathItem reference can be used with local definition, but OpenAPI 2.0 spec allows only external references for this object.
For example:
This spec will be loaded and expanded but it shouldn't.