|
2 | 2 | <!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
|
3 | 3 | <!ENTITY RFC2119 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2119.xml">
|
4 | 4 | <!ENTITY RFC3986 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.3986.xml">
|
| 5 | +<!ENTITY RFC6596 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.6596.xml"> |
5 | 6 | <!ENTITY RFC6839 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.6839.xml">
|
6 | 7 | <!ENTITY RFC6901 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.6901.xml">
|
7 | 8 | <!ENTITY RFC7049 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.7049.xml">
|
|
402 | 403 | additional keywords that are not part of a formal vocabulary.
|
403 | 404 | </t>
|
404 | 405 | </section>
|
405 |
| - <section title="Root Schema and Subschemas" anchor="root"> |
| 406 | + <section title="Root Schema and Subschemas and Resources" anchor="root"> |
| 407 | + <t> |
| 408 | + A JSON Schema resource is a schema which is |
| 409 | + <xref target="RFC6596">canonically</xref> identified by an |
| 410 | + <xref target="RFC3986">absolute URI</xref>. |
| 411 | + </t> |
| 412 | + <t> |
| 413 | + As discussed in section |
| 414 | + <xref target="id-keyword" format="counter"></xref>, a JSON Schema document |
| 415 | + can contain multiple JSON Schema resources. |
| 416 | + </t> |
406 | 417 | <t>
|
407 | 418 | The root schema is the schema that comprises the entire JSON document
|
408 |
| - in question. |
| 419 | + in question. The root schema is always a schema resource, where the |
| 420 | + URI is determined as described in section |
| 421 | + <xref target="initial-base" format="counter"></xref>. |
409 | 422 | </t>
|
410 | 423 | <t>
|
411 | 424 | Some keywords take schemas themselves, allowing JSON Schemas to be nested:
|
|
1455 | 1468 | to other schemas by specifying their URI.
|
1456 | 1469 | </t>
|
1457 | 1470 |
|
1458 |
| - <section title="Initial Base URI"> |
| 1471 | + <section title="Initial Base URI" anchor="initial-base"> |
1459 | 1472 | <t>
|
1460 | 1473 | <xref target="RFC3986">RFC3986 Section 5.1</xref> defines how to determine the
|
1461 | 1474 | default base URI of a document.
|
|
1466 | 1479 | situation identifiable by a URI of any known scheme.
|
1467 | 1480 | </t>
|
1468 | 1481 | <t>
|
1469 |
| - If a schema document defines no explicit base URI with "$id" (embedded in content), |
1470 |
| - the base URI is that determined per |
| 1482 | + If a schema document defines no explicit base URI with "$id" |
| 1483 | + (embedded in content), the base URI is that determined per |
1471 | 1484 | <xref target="RFC3986">RFC 3986 section 5</xref>.
|
1472 | 1485 | </t>
|
1473 | 1486 | <t>
|
|
1476 | 1489 | <xref target="RFC3986"> RFC 3986 Section 5.1.4</xref>. It is RECOMMENDED
|
1477 | 1490 | that implementations document any default base URI that they assume.
|
1478 | 1491 | </t>
|
| 1492 | + <t> |
| 1493 | + Unless the "$id" keyword described in the next section is present in the |
| 1494 | + root schema, this base URI SHOULD be considered the canonical URI of the |
| 1495 | + schema document's root schema resource. |
| 1496 | + </t> |
1479 | 1497 | </section>
|
1480 | 1498 |
|
1481 | 1499 | <section title='The "$id" Keyword' anchor="id-keyword">
|
@@ -3349,6 +3367,7 @@ User-Agent: product-name/5.4.1 so-cool-json-schema/1.0.2 curl/7.43.0
|
3349 | 3367 | </references>
|
3350 | 3368 |
|
3351 | 3369 | <references title="Informative References">
|
| 3370 | + &RFC6596; |
3352 | 3371 | &RFC7049;
|
3353 | 3372 | &RFC7231;
|
3354 | 3373 | &RFC8288;
|
|
0 commit comments