Skip to content

Commit 976a6fb

Browse files
committed
Use correct terms for bundling process of Compound Schema Documents
Previously 'dereferenced' was used incorrectly. Now "bundling" is clearly defined, and MUST and MUST NOT are split for clairty.
1 parent 6cf7022 commit 976a6fb

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

jsonschema-core.xml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1847,7 +1847,7 @@
18471847
</t>
18481848
<section title="Bundling">
18491849
<t>
1850-
The bundling process for creating a Compound Schema Document is done by taking
1850+
The bundling process for creating a Compound Schema Document is defined as taking
18511851
references (such as "$ref") to an external Schema Resource and embedding the referenced
18521852
Schema Resources within the referreing document.
18531853
</t>
@@ -1857,13 +1857,16 @@
18571857
schema resource.
18581858
</t>
18591859
<t>
1860-
When a by-reference applicator is dereferenced as part of the bundling process, the Schema Resource
1861-
MUST NOT be embedded by replacing the schema object from which it was referenced, or by wrapping
1862-
in other applicator keywords. Instead, a bundled Schema Resource MUST be located as a value of
1863-
a "$defs" object at the containing schemas root. The key of the "$defs" for the now embedded
1864-
Schema Resource MAY be the "$id" of the bundled schema or some other form of application defined
1865-
unique identifer (such as a UUID). This key is not intended to be referenced in JSON Schema, but may
1866-
be used by an application to aid the bundling process.
1860+
When the Schema Resource referenced by a by-reference applicator is bundled, the Schema Resource
1861+
MUST be located as a value of a "$defs" object at the containing schemas root.
1862+
The key of the "$defs" for the now embedded Schema Resource MAY be the "$id" of the bundled schema
1863+
or some other form of application defined unique identifer (such as a UUID). This key is not
1864+
intended to be referenced in JSON Schema, but may be used by an application to aid the
1865+
bundling process.
1866+
</t>
1867+
<t>
1868+
Bundled Schema Resource MUST NOT be bundled by replacing the schema object from which it was
1869+
referenced, or by wrapping the Schema Resource in other applicator keywords.
18671870
</t>
18681871
<t>
18691872
References in the containing schema document to the previously external Schema Resources

0 commit comments

Comments
 (0)