Skip to content

Commit b2f3409

Browse files
authored
Merge pull request #628 from Relequestual/ref-is-delegation-3
Ref is delegation - try 3
2 parents a2c6b1c + a3d8df3 commit b2f3409

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

jsonschema-core.xml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -955,14 +955,18 @@
955955

956956
<section title='Schema References With "$ref"' anchor="ref">
957957
<t>
958-
The "$ref" keyword is used to reference a schema, and provides the ability to
959-
validate recursive structures through self-reference.
958+
The "$ref" keyword can be used to reference a schema which is to be applied to the
959+
current instance location. "$ref" is an applicator key word, applying the referred
960+
schema to the instance.
960961
</t>
961962
<t>
962-
An object schema with a "$ref" property MUST be interpreted as a "$ref" reference.
963-
The value of the "$ref" property MUST be a URI Reference.
963+
The value of the "$ref" property MUST be a string which is a URI Reference.
964964
Resolved against the current URI base, it identifies the URI of a schema to use.
965-
All other properties in a "$ref" object MUST be ignored.
965+
</t>
966+
<t>
967+
As the value of "$ref" is a URI Reference, this allows the possibility to externalise or
968+
divide a schema across multiple files, and provides the ability to validate recursive structures
969+
through self-reference.
966970
</t>
967971
<t>
968972
The URI is not a network locator, only an identifier. A schema need not be

0 commit comments

Comments
 (0)