-
Notifications
You must be signed in to change notification settings - Fork 80
Closed
Description
If openapi.yml $ref's otherfile.yml, $ref's in otherfile.yml do not resolve.
Detailed description
To reproduce, I ran speccy 0.7.3 and 0.8.4 over the same Open API definition.
This screenshot shows that speccy 0.7.3 resolves the $ref from ping.yml to openapi.yml and 0.8.4 does not (it produces an empty object instead).
Context
I define each URL/verb combination as an endpoint and all responses as JSON Schema and use speccy to combine/resolve between the relevant files and formats. An example of this usage is in this example Open API definition (see the npm scripts for speccy cli usage).
Example
File: openapi.yml
...
paths:
/ping:
$ref: "endpoints/ping.yml#/paths/~1ping"
...
components:
schemas:
ping:
$ref: 'schemas/ping.json'
...File: endpoint/ping.yml
paths:
'/ping':
get:
responses:
'200':
content:
application/json:
schema:
$ref: '../openapi.yml#/components/schemas/ping'Environment
- Node Version: v8.9.4
- OS: MacOS 10.13.4
- Link to your project: Reproduced in this example Open API definition.
Metadata
Metadata
Assignees
Labels
No labels
