-
-
Notifications
You must be signed in to change notification settings - Fork 239
Closed
Description
Given the schema, mySchema.json
:
{ "properties": { "thing": { "$ref": "./schemas/thing.json" } } }
Where thing.json
is:
{ "properties": { "inner_thing": { "$ref": "./schemas/inner_thing.json" } } }
Attempting to deference mySchema.json
at baseUrl json/
, results in the dereference function observing the baseUrl for mySchema.json
, but not for thing.json
, leading to trying to read the file inner_thing.json
at: json/schemas/json/schemas/inner_thing.json
.
As such, there is no way to resolve schema structure whereby there are schemas that reference either of thing.json
or inner_thing.json
. Could a resolver option be included that says "always resolve relative to the supplied cwd"?
Metadata
Metadata
Assignees
Labels
No labels