File tree 1 file changed +9
-5
lines changed
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 955
955
956
956
<section title =' Schema References With "$ref"' anchor =" ref" >
957
957
<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.
960
961
</t >
961
962
<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.
964
964
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.
966
970
</t >
967
971
<t >
968
972
The URI is not a network locator, only an identifier. A schema need not be
You can’t perform that action at this time.
0 commit comments