Skip to content

Commit 78aacf6

Browse files
authored
Merge pull request #1039 from Relequestual/issue/1032-bundle-other-locations
Reduce restrictions on where bundled schema resource may be located
2 parents d97e875 + ba25b0e commit 78aacf6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

jsonschema-core.xml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1866,15 +1866,19 @@
18661866
schema resource. It is RECOMMENDED that the URI identifier value of "$id" be an Absolute URI.
18671867
</t>
18681868
<t>
1869-
When the Schema Resource referenced by a by-reference applicator is bundled, the Schema Resource
1870-
MUST be located as a value of a "$defs" object at the containing schema's root.
1869+
When the Schema Resource referenced by a by-reference applicator is bundled, it is RECOMMENDED that
1870+
the Schema Resource be located as a value of a "$defs" object at the containing schema's root.
18711871
The key of the "$defs" for the now embedded Schema Resource MAY be the "$id" of the bundled schema
18721872
or some other form of application defined unique identifer (such as a UUID). This key is not
18731873
intended to be referenced in JSON Schema, but may be used by an application to aid the
18741874
bundling process.
18751875
</t>
18761876
<t>
1877-
Schema Resources MUST NOT be bundled by replacing the schema object from which it was
1877+
A Schema Resource MAY be embedded in a location other than "$defs" where the location is defined
1878+
as a schema value.
1879+
</t>
1880+
<t>
1881+
A Bundled Schema Resource MUST NOT be bundled by replacing the schema object from which it was
18781882
referenced, or by wrapping the Schema Resource in other applicator keywords.
18791883
</t>
18801884
<t>

0 commit comments

Comments
 (0)