File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,16 @@ Bundling](https://github.com/sourcemeta/jsonschema/blob/main/docs/bundle.markdow
50
50
to inline externally referenced schemas that might be based on different
51
51
dialects of JSON Schema.
52
52
53
+ {{<common-pitfall >}}JSON Schema prohibits referencing meta-schemas using
54
+ relative URIs. The fundamental reason for this is that resolving the
55
+ meta-schema is necessary for correctly determining the base URI of the schema,
56
+ from which a relative meta-schema reference would be resolved, introducing a
57
+ circular problem.
58
+
59
+ A common occurrence of this issue is setting the ` $schema ` keyword to a
60
+ relative path, which is again invalid according to the
61
+ specification.{{</common-pitfall >}}
62
+
53
63
{{<common-pitfall >}}JSON Schema prohibits the use of the this keyword on
54
64
arbitrary subschemas that do not represent schema resources. It can only be
55
65
present at the root of the schema (an implicit schema resource) or as a sibling
You can’t perform that action at this time.
0 commit comments