Have also added a lightweight regression test that can be used to show the changes: paths/index.yaml references paths/nested.yaml. Running npm test against previous dependencies would result in a broken /nested schema as such (SameFileReference definition doesn't appear anywhere):
/nested:
get:
responses:
'200':
description: OK
schema:
$ref: '#/nested/SameFileReference'
Updating to latest versions:
Updates allow nested references to be resolved which was added on
json-refs@3.0.2
as per this https://github.com/whitlockjc/json-refs/issues/27Have also added a lightweight regression test that can be used to show the changes:
paths/index.yaml
referencespaths/nested.yaml
. Running npm test against previous dependencies would result in a broken/nested
schema as such (SameFileReference
definition doesn't appear anywhere):With this update, /nested schema is inlined: