jschema icon indicating copy to clipboard operation
jschema copied to clipboard

Relative `$ref`

Open terlar opened this issue 9 years ago • 1 comments

I am wondering if this is supposed to work or if this is something we want to support.

For example if you have other files in the same direcotry or ../otherfile.json.

Is ther a way to do that? Right now I have my own manual expander that includes the inclusions in place.

terlar avatar Nov 12 '15 11:11 terlar

@terlar unfortunately, this case does not work at the moment, but definitely should be supported.

There are test cases for JSON reference support in the JSON schema test suite, for example: https://github.com/json-schema/JSON-Schema-Test-Suite/blob/develop/tests/draft4/refRemote.json#L53 Some of these test cases fail, but I plan to work on them.

soylent avatar Nov 14 '15 01:11 soylent