|
187 | 187 | It is therefore the first URI Reference resolved, regardless of which order it was found in.
|
188 | 188 | </t>
|
189 | 189 | <t>
|
190 |
| - The URI is computed from the provided URI template using the same process described for the <xref target="href">"href"</xref> and <xref target="href-vars">"hrefVars"</xref> properties of a Link Description Object. |
| 190 | + The URI is computed from the provided URI template, along with |
| 191 | + <xref target="base-vars">"baseVars"</xref>, using the same |
| 192 | + process described for the <xref target="href">"href"</xref> |
| 193 | + and <xref target="href-vars">"hrefVars"</xref> properties of |
| 194 | + a Link Description Object. |
191 | 195 | </t>
|
192 | 196 | <figure>
|
193 | 197 | <preamble>An example of a JSON schema using "base":</preamble>
|
|
232 | 236 | </t>
|
233 | 237 | </section>
|
234 | 238 |
|
| 239 | + <section title="baseVars" anchor="base-vars"> |
| 240 | + <t> |
| 241 | + The value of this keyword MUST be an object. |
| 242 | + The property names in the object SHOULD each be identical to |
| 243 | + a template variable from the "base" value in this schema. |
| 244 | + The value of each property MUST be a |
| 245 | + <xref target="relative-json-pointer">Relative JSON Pointer</xref>. |
| 246 | + </t> |
| 247 | + <t> |
| 248 | + The "baseVars" object is used to resolve "base" template |
| 249 | + variable names that do not meet the restrictions of the |
| 250 | + <xref target="RFC6570">URI Template specification</xref>, |
| 251 | + or that need to resolve to values other than immediate |
| 252 | + properties of the instance. |
| 253 | + </t> |
| 254 | + <t> |
| 255 | + See the <xref target="href-vars">"hrefVars"</xref> link |
| 256 | + description keyword for the rules for using the mappings. |
| 257 | + </t> |
| 258 | + </section> |
| 259 | + |
235 | 260 | <section title="links">
|
236 | 261 | <t>
|
237 | 262 | The "links" property of schemas is used to associate Link Description Objects with instances. The value of this property MUST be an array, and the items in the array must be Link Description Objects, as defined below.
|
|
0 commit comments