Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Commit b6f9650

Browse files
committed
Fixed "extends" examples.
1 parent d3effee commit b6f9650

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

draft-zyp-json-schema-03.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -441,16 +441,16 @@ schemas are possible, but are not required. An example of using "extends":
441441
<artwork><![CDATA[
442442
{
443443
"description":"An adult",
444-
"properties":{"age":{"minimum": 21}},
445-
"extends":"person"
444+
"properties":{"age":{"minimum":21}},
445+
"extends":{"$ref":"person"}
446446
}
447447
]]></artwork></figure>
448448
<figure>
449449
<artwork><![CDATA[
450450
{
451451
"description":"Extended schema",
452-
"properties":{"deprecated":{"type": "boolean"}},
453-
"extends":"http://json-schema.org/draft-03/schema"
452+
"properties":{"deprecated":{"type":"boolean"}},
453+
"extends":{"$ref":"http://json-schema.org/draft-03/schema"}
454454
}
455455
]]></artwork></figure>
456456

0 commit comments

Comments
 (0)