|
284 | 284 | </section>
|
285 | 285 |
|
286 | 286 | <section title="Meta-Schemas and Output Schema">
|
287 |
| - <t> |
288 |
| - <cref>The "draft-07-wip" is a placeholder.</cref> |
289 |
| - </t> |
290 | 287 | <t>
|
291 | 288 | The current URI for the JSON Hyper-Schema meta-schema is
|
292 | 289 | <eref target="http://json-schema.org/draft-07/hyper-schema#"/>.
|
@@ -1572,8 +1569,8 @@ Link: <https://schema.example.com/entry> rel=describedBy
|
1572 | 1569 | <![CDATA[
|
1573 | 1570 | {
|
1574 | 1571 | "$id": "https://schema.example.com/entry",
|
1575 |
| - "$schema": "http://json-schema.org/draft-07-wip/hyper-schema#", |
1576 |
| - "base": "https://api.example.com", |
| 1572 | + "$schema": "http://json-schema.org/draft-07/hyper-schema#", |
| 1573 | + "base": "https://api.example.com/", |
1577 | 1574 | "links": [
|
1578 | 1575 | {
|
1579 | 1576 | "rel": "self",
|
@@ -1626,8 +1623,8 @@ Link: <https://schema.example.com/entry> rel=describedBy
|
1626 | 1623 | <artwork>
|
1627 | 1624 | <![CDATA[{
|
1628 | 1625 | "$id": "https://schema.example.com/thing",
|
1629 |
| - "$schema": "http://json-schema.org/draft-07-wip/hyper-schema#", |
1630 |
| - "base": "https://api.example.com", |
| 1626 | + "$schema": "http://json-schema.org/draft-07/hyper-schema#", |
| 1627 | + "base": "https://api.example.com/", |
1631 | 1628 | "type": "object",
|
1632 | 1629 | "required": ["data"],
|
1633 | 1630 | "properties": {
|
@@ -1742,7 +1739,7 @@ Link: <https://schema.example.com/entry> rel=describedBy
|
1742 | 1739 | <artwork>
|
1743 | 1740 | <![CDATA[{
|
1744 | 1741 | "$id": "https://schema.example.com/interesting-stuff",
|
1745 |
| - "$schema": "http://json-schema.org/draft-07-wip/hyper-schema#", |
| 1742 | + "$schema": "http://json-schema.org/draft-07/hyper-schema#", |
1746 | 1743 | "required": ["stuffWorthEmailingAbout", "email", "title"],
|
1747 | 1744 | "properties": {
|
1748 | 1745 | "title": {
|
@@ -1927,8 +1924,10 @@ Link: <https://api.example.com/trees/1/nodes/456> rev=up
|
1927 | 1924 | and relative JSON Pointers in "templatePointers".
|
1928 | 1925 | </preamble>
|
1929 | 1926 | <artwork>
|
1930 |
| -<![CDATA[ |
1931 |
| - "base": "trees/{treeId}", |
| 1927 | +<![CDATA[{ |
| 1928 | + "$id": "https://schema.example.com/tree-node", |
| 1929 | + "$schema": "http://json-schema.org/draft-07/hyper-schema#", |
| 1930 | + "base": "trees/{treeId}/", |
1932 | 1931 | "properties": {
|
1933 | 1932 | "id": {"type": "integer"},
|
1934 | 1933 | "treeId": {"type": "integer"},
|
@@ -1989,8 +1988,8 @@ Link: <https://api.example.com/trees/1/nodes/456> rev=up
|
1989 | 1988 | <artwork>
|
1990 | 1989 | <![CDATA[{
|
1991 | 1990 | "$id": "https://schema.example.com/thing",
|
1992 |
| - "$schema": "http://json-schema.org/draft-07-wip/hyper-schema#", |
1993 |
| - "base": "https://api.example.com", |
| 1991 | + "$schema": "http://json-schema.org/draft-07/hyper-schema#", |
| 1992 | + "base": "https://api.example.com/", |
1994 | 1993 | "type": "object",
|
1995 | 1994 | "required": ["data"],
|
1996 | 1995 | "properties": {
|
@@ -2042,8 +2041,8 @@ Link: <https://api.example.com/trees/1/nodes/456> rev=up
|
2042 | 2041 | <artwork>
|
2043 | 2042 | <![CDATA[{
|
2044 | 2043 | "$id": "https://schema.example.com/thing-collection",
|
2045 |
| - "$schema": "http://json-schema.org/draft-07-wip/hyper-schema#", |
2046 |
| - "base": "https://api.example.com", |
| 2044 | + "$schema": "http://json-schema.org/draft-07/hyper-schema#", |
| 2045 | + "base": "https://api.example.com/", |
2047 | 2046 | "type": "object",
|
2048 | 2047 | "required": ["elements"],
|
2049 | 2048 | "properties": {
|
@@ -2075,6 +2074,9 @@ Link: <https://api.example.com/trees/1/nodes/456> rev=up
|
2075 | 2074 | </artwork>
|
2076 | 2075 | </figure>
|
2077 | 2076 | <figure>
|
| 2077 | + <preamble> |
| 2078 | + Here is a simple two-element collection instance: |
| 2079 | + </preamble> |
2078 | 2080 | <artwork>
|
2079 | 2081 | <![CDATA[{
|
2080 | 2082 | "elements": [
|
|
0 commit comments