Skip to content

Commit 38e1606

Browse files
authored
Merge pull request #801 from handrews/ref-results
Clarify the results of $ref and $recursiveRef
2 parents 5df7ea8 + dd3d66c commit 38e1606

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

jsonschema-core.xml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1587,7 +1587,14 @@
15871587

15881588
<section title='Direct References with "$ref"' anchor="ref">
15891589
<t>
1590-
The "$ref" keyword is used to reference a statically identified schema.
1590+
The "$ref" keyword is an applicator that is used to reference a statically
1591+
identified schema. Its results are the results of the referenced schema.
1592+
<cref>
1593+
Note that this definition of how the results are determined means that
1594+
other keywords can appear alongside of "$ref" in the same schema object.
1595+
</cref>
1596+
</t>
1597+
<t>
15911598
The value of the "$ref" property MUST be a string which is a URI-Reference.
15921599
Resolved against the current URI base, it produces the URI of the schema
15931600
to apply.
@@ -1653,6 +1660,10 @@
16531660
when it is present), "$recursiveRef"'s behavior is identical to
16541661
that of "$ref".
16551662
</t>
1663+
<t>
1664+
As with "$ref", the results of this keyword are the results of the
1665+
referenced schema.
1666+
</t>
16561667
</section>
16571668
<section title='Enabling Recursion with "$recursiveAnchor"'>
16581669
<t>

0 commit comments

Comments
 (0)