Skip to content

Commit 7beb355

Browse files
committed
Move some content of use of schema within Compound Document resources, to said section
1 parent 3c99506 commit 7beb355

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
@@ -1180,16 +1180,6 @@
11801180
It MUST NOT appear in non-resource root schema objects. If absent from
11811181
the document root schema, the resulting behavior is implementation-defined.
11821182
</t>
1183-
<t>
1184-
If multiple schema resources are present in a single document, then
1185-
schema resources which do not have a "$schema" keyword in their root
1186-
schema object MUST be processed as if "$schema" were present with the
1187-
same value as for the immediately enclosing resource.
1188-
</t>
1189-
<t>
1190-
Embedded schema resources MAY specify different "$schema" values from their
1191-
enclosing resource, as any schema that can be referenced can also be embedded.
1192-
</t>
11931183
<t>
11941184
Values for this property are defined elsewhere in this and other documents,
11951185
and by other parties.
@@ -1873,6 +1863,19 @@
18731863
where the key is the `$id` of the Schema Resource, which MUST then be referenced using `$ref`.
18741864
</t>
18751865
</section>
1866+
<section title="Differing and Default Dialects">
1867+
<t>
1868+
In addition to the rules defining the use of the "$schema" keyword <target='The "$schema" Keyword' format="counter"></xref>,
1869+
if multiple schema resources are present in a single document, then
1870+
schema resources which do not have a "$schema" keyword in their root
1871+
schema object MUST be processed as if "$schema" were present with the
1872+
same value as for the immediately enclosing resource.
1873+
</t>
1874+
<t>
1875+
Embedded schema resources MAY specify different "$schema" values from their
1876+
enclosing resource, as any schema that can be referenced can also be embedded.
1877+
</t>
1878+
</section>
18761879
<section title="Validating">
18771880
<t>
18781881
Given a Compound Schema Document may have embedded resources which idenfiy as using different

0 commit comments

Comments
 (0)