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
$refs and how they get resolved.Consider the following definitions:
foo.schema.json
{ "$id": "https://someprefix/foo", "title": "Foo", "type": "object", "properties": { "bar": { "$ref": "bar#" } }, "required": ["bar"] }bar.schema.json
{ "$id": "https://someprefix/bar", "title": "Bar", "type": "object", "properties": { "value": { "type": "string" } }, "required": ["value"] }As you see the
https://someprefix/fooschema depends on thehttps://someprefix/barone. The reference to fromfootobaris 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
Ajvresolution works for example.Beta Was this translation helpful? Give feedback.
All reactions