Replies: 1 comment 1 reply
-
Read the docs from https://json-schema.org/understanding-json-schema/structuring.html#id19 and be very careful about the relative URLs. Hint: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I read the documentation but couldn't find anything about using
$ref
s and how they get resolved.Consider the following definitions:
foo.schema.json
bar.schema.json
As you see the
https://someprefix/foo
schema depends on thehttps://someprefix/bar
one. The reference to fromfoo
tobar
is performed via{ "$ref": "bar#" }
. Unfortunately it doesn't work with this plugin:results to a validation error:
Is there a way to load all the schemas from a directory to get this resolution working? This is how
Ajv
resolution works for example.Beta Was this translation helpful? Give feedback.
All reactions