Skip to content

Commit 0003dbb

Browse files
authored
Merge pull request #991 from handrews/indent
Fix missed "$id" that should be "$anchor", and other minor fixes
2 parents 62a258d + 799ecc6 commit 0003dbb

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

jsonschema-core.xml

+26-26
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@
314314
<t>
315315
Object properties that are applied to the instance are called keywords,
316316
or schema keywords. Broadly speaking, keywords fall into one
317-
of four categories:
317+
of five categories:
318318
<list style="hanging">
319319
<t hangText="identifiers:">
320320
control schema identification through setting the schema's
@@ -1697,26 +1697,26 @@
16971697
<artwork>
16981698
<![CDATA[
16991699
{
1700-
"$id": "https://example.net/root.json",
1701-
"items": {
1702-
"type": "array",
1703-
"items": { "$ref": "#item" }
1704-
},
1705-
"$defs": {
1706-
"single": {
1707-
"$anchor": "item",
1708-
"type": "object",
1709-
"additionalProperties": { "$ref": "other.json" }
1710-
}
1711-
}
1700+
"$id": "https://example.net/root.json",
1701+
"items": {
1702+
"type": "array",
1703+
"items": { "$ref": "#item" }
1704+
},
1705+
"$defs": {
1706+
"single": {
1707+
"$anchor": "item",
1708+
"type": "object",
1709+
"additionalProperties": { "$ref": "other.json" }
1710+
}
1711+
}
17121712
}
17131713
]]>
17141714
</artwork>
17151715
</figure>
17161716
<t>
17171717
When an implementation encounters the &lt;#/$defs/single&gt; schema,
1718-
it resolves the "$id" URI reference against the current base URI to form
1719-
&lt;https://example.net/root.json#item&gt;.
1718+
it resolves the "$anchor" value as a fragment name against the current
1719+
base URI to form &lt;https://example.net/root.json#item&gt;.
17201720
</t>
17211721
<t>
17221722
When an implementation then looks inside the &lt;#/items&gt; schema, it
@@ -1769,11 +1769,11 @@
17691769
<artwork>
17701770
<![CDATA[
17711771
{
1772-
"$id": "https://example.com/foo",
1773-
"items": {
1774-
"$id": "https://example.com/bar",
1775-
"additionalProperties": { }
1776-
}
1772+
"$id": "https://example.com/foo",
1773+
"items": {
1774+
"$id": "https://example.com/bar",
1775+
"additionalProperties": { }
1776+
}
17771777
}
17781778
]]>
17791779
</artwork>
@@ -1792,15 +1792,15 @@
17921792
<artwork>
17931793
<![CDATA[
17941794
{
1795-
"$id": "https://example.com/foo",
1796-
"items": {
1797-
"$ref": "bar"
1798-
}
1795+
"$id": "https://example.com/foo",
1796+
"items": {
1797+
"$ref": "bar"
1798+
}
17991799
}
18001800
18011801
{
1802-
"$id": "https://example.com/bar",
1803-
"additionalProperties": { }
1802+
"$id": "https://example.com/bar",
1803+
"additionalProperties": { }
18041804
}
18051805
]]>
18061806
</artwork>

0 commit comments

Comments
 (0)