Skip to content

Commit ea80459

Browse files
committed
Move some content of use of schema within Compound Document resources, to said section
1 parent f183a6e commit ea80459

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

jsonschema-core.xml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,16 +1171,6 @@
11711171
It MUST NOT appear in non-resource root schema objects. If absent from
11721172
the document root schema, the resulting behavior is implementation-defined.
11731173
</t>
1174-
<t>
1175-
If multiple schema resources are present in a single document, then
1176-
schema resources which do not have a "$schema" keyword in their root
1177-
schema object MUST be processed as if "$schema" were present with the
1178-
same value as for the immediately enclosing resource.
1179-
</t>
1180-
<t>
1181-
Embedded schema resources MAY specify different "$schema" values from their
1182-
enclosing resource, as any schema that can be referenced can also be embedded.
1183-
</t>
11841174
<t>
11851175
Values for this property are defined elsewhere in this and other documents,
11861176
and by other parties.
@@ -1858,6 +1848,19 @@
18581848
where the key is the `$id` of the Schema Resource, which MUST then be referenced using `$ref`.
18591849
</t>
18601850
</section>
1851+
<section title="Differing and Default Dialects">
1852+
<t>
1853+
In addition to the rules defining the use of the "$schema" keyword <target='The "$schema" Keyword' format="counter"></xref>,
1854+
if multiple schema resources are present in a single document, then
1855+
schema resources which do not have a "$schema" keyword in their root
1856+
schema object MUST be processed as if "$schema" were present with the
1857+
same value as for the immediately enclosing resource.
1858+
</t>
1859+
<t>
1860+
Embedded schema resources MAY specify different "$schema" values from their
1861+
enclosing resource, as any schema that can be referenced can also be embedded.
1862+
</t>
1863+
</section>
18611864
<section title="Validating">
18621865
<t>
18631866
Given a Compound Schema Document may have embedded resources which idenfiy as using different

0 commit comments

Comments
 (0)