Closed ldemailly closed 11 months ago
I'm not sure if file://./ids.json#/id
is actually a valid reference. VSCode's validator also complains about that reference. But I can confirm that go-jsonschema also doesn't work with ./ids.json#/id
and ids.json#/id
while VSCode is happy with either of those.
We use https://github.com/neilpa/yajsv/ which takes that syntax fine, happy to change to whichever works for that tool and would work (better) with go-jsonschema
Hi! I have started the work here: https://github.com/omissis/go-jsonschema/pull/147 In the next few days I will also add @ldemailly 's example to the test suite and see to make it work. Thanks!
I merged the issue #147 , which should solve the problem. The feature will become available in the upcoming v0.15.0 release, in the meantime it can be tested by building from main
. closing.
repro:
(btw consider fixing it so the github.com/omissis/go-jsonschema path works)
in ids.json
in schema.json
then