Skip to content

Commit 4eacfe3

Browse files
committed
Better specify the process of validating a Compound Schema Document
1 parent 5d36e17 commit 4eacfe3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

jsonschema-core.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1895,9 +1895,10 @@
18951895
<section title="Validating">
18961896
<t>
18971897
Given that a Compound Schema Document may have embedded resources which idenfiy as using different
1898-
dialects, it is NOT RECOMMENDED that these documents are validated by applying a meta-schema
1898+
dialects, these documents SHOULD NOT be validated by applying a meta-schema
18991899
to the Compound Schema Document as an instance. It is RECOMMENDED that an alternate
1900-
validation process be provided in order to validate Schema Documents.
1900+
validation process be provided in order to validate Schema Documents. Each Schema Resource
1901+
SHOULD be separately validated against its associated meta-schema.
19011902
<cref>
19021903
If you know a schema is what's being validated, you can identify if the schemas
19031904
is a Compound Schema Document or not, by way of use of "$id", which identifies an
@@ -1906,7 +1907,8 @@
19061907
</t>
19071908
<t>
19081909
A Compound Schema Document in which all embedded resources idenfity as using the same
1909-
dialect MAY be validated by applying the appropriate meta-schema.
1910+
dialec, or in which "$schema" is omitted and therefore defaults to that of the enclosing resource,
1911+
MAY be validated by applying the appropriate meta-schema.
19101912
</t>
19111913
</section>
19121914
</section>

0 commit comments

Comments
 (0)