Skip to content

Commit 43dd3f9

Browse files
Dule-martinsjdesrosiers
authored andcommitted
Updated the $id and included a Draft-specific info box section
1 parent e796a69 commit 43dd3f9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pages/understanding-json-schema/structuring.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ example bundled into a Compound Schema Document.
515515

516516
"$defs": {
517517
"address": {
518-
"$id": "/schemas/address",
518+
"$id": "https://example.com/schemas/customer",
519519
"$schema": "http://json-schema.org/draft-07/schema#",
520520

521521
"type": "object",
@@ -565,3 +565,10 @@ In Draft 4-7, a subschema `$id` is just a base URI change and not
565565
only allowed at the root of a Schema Resource, all schemas bundled
566566
using subschema `$id` must use the same dialect.
567567
</Infobox>
568+
569+
<Infobox label="Draft-specific info">
570+
In Draft 2020-12,`$id` support for changing dialects in an embedded schema
571+
(using $schema with a different value than the parent schema) was added.
572+
In 2020-09, Only URI-references without fragments are allowed;
573+
all other fragments in $id had undefined behavior previously.
574+
</Infobox>

0 commit comments

Comments
 (0)