Skip to content

Commit 1a93be3

Browse files
authored
Merge pull request #508 from handrews/errata
Various hyper-schema example fixes
2 parents 04ee335 + ecf7f0e commit 1a93be3

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

jsonschema-hyperschema.xml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,6 @@
284284
</section>
285285

286286
<section title="Meta-Schemas and Output Schema">
287-
<t>
288-
<cref>The "draft-07-wip" is a placeholder.</cref>
289-
</t>
290287
<t>
291288
The current URI for the JSON Hyper-Schema meta-schema is
292289
<eref target="http://json-schema.org/draft-07/hyper-schema#"/>.
@@ -1572,8 +1569,8 @@ Link: <https://schema.example.com/entry> rel=describedBy
15721569
<![CDATA[
15731570
{
15741571
"$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/",
15771574
"links": [
15781575
{
15791576
"rel": "self",
@@ -1626,8 +1623,8 @@ Link: <https://schema.example.com/entry> rel=describedBy
16261623
<artwork>
16271624
<![CDATA[{
16281625
"$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/",
16311628
"type": "object",
16321629
"required": ["data"],
16331630
"properties": {
@@ -1742,7 +1739,7 @@ Link: <https://schema.example.com/entry> rel=describedBy
17421739
<artwork>
17431740
<![CDATA[{
17441741
"$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#",
17461743
"required": ["stuffWorthEmailingAbout", "email", "title"],
17471744
"properties": {
17481745
"title": {
@@ -1927,8 +1924,10 @@ Link: <https://api.example.com/trees/1/nodes/456> rev=up
19271924
and relative JSON Pointers in "templatePointers".
19281925
</preamble>
19291926
<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}/",
19321931
"properties": {
19331932
"id": {"type": "integer"},
19341933
"treeId": {"type": "integer"},
@@ -1989,8 +1988,8 @@ Link: <https://api.example.com/trees/1/nodes/456> rev=up
19891988
<artwork>
19901989
<![CDATA[{
19911990
"$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/",
19941993
"type": "object",
19951994
"required": ["data"],
19961995
"properties": {
@@ -2042,8 +2041,8 @@ Link: <https://api.example.com/trees/1/nodes/456> rev=up
20422041
<artwork>
20432042
<![CDATA[{
20442043
"$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/",
20472046
"type": "object",
20482047
"required": ["elements"],
20492048
"properties": {
@@ -2075,6 +2074,9 @@ Link: <https://api.example.com/trees/1/nodes/456> rev=up
20752074
</artwork>
20762075
</figure>
20772076
<figure>
2077+
<preamble>
2078+
Here is a simple two-element collection instance:
2079+
</preamble>
20782080
<artwork>
20792081
<![CDATA[{
20802082
"elements": [

0 commit comments

Comments
 (0)