Error resolving openapi $ref: JSON Pointer points to missing location: #/components/schemas/Pet #470
Labels
stage: awaiting response
Solution was proposed. Awaiting response.
stage: needs investigation
Needs further investigation
Describe the bug
Generating mocks from OpenAPI definition is not working whe using $ref to point to some schema.
To Reproduce
Download the Petstore example from Swagger Hub, configure mocks server on a Node project and run.
Expected behavior
Mocks Server should be able to generate the routes.
Logs
One of the many errors:
** Operating system, Node.js an npm versions, or browser version (please complete the following information):**
Additional context
The mock server works if I put all the OpenAPI specification inside the
document
property ofdefinitions.js
, but doesn't if I want to have an external file reference indocument
with$ref
.The text was updated successfully, but these errors were encountered: