Skip to content

Commit de948c7

Browse files
committed
Update meta-schemas for changes in the last draft.
These changes were made for draft 05 but as that was intentionally published with no new meta-schema, we are going straight to draft 06 with the meta-schema identifiers.
1 parent 356af3b commit de948c7

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

hyper-schema.json

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"$schema": "http://json-schema.org/draft-04/hyper-schema#",
3-
"id": "http://json-schema.org/draft-04/hyper-schema#",
2+
"$schema": "http://json-schema.org/draft-06/hyper-schema#",
3+
"id": "http://json-schema.org/draft-06/hyper-schema#",
44
"title": "JSON Hyper-Schema",
55
"allOf": [
6-
{"$ref": "http://json-schema.org/draft-04/schema#"}
6+
{"$ref": "http://json-schema.org/draft-06/schema#"}
77
],
88
"properties": {
99
"additionalItems": {
@@ -46,13 +46,15 @@
4646
"oneOf": {"$ref": "#/definitions/schemaArray"},
4747
"not": { "$ref": "#" },
4848

49+
"base": {
50+
"description": "URI Template resolved as for the 'href' keyword in the Link Description Object. The resulting URI Refernce is resolved against the current URI base and sets the new URI base for URI references within the instance.",
51+
"type": "string",
52+
"format": "uriref"
53+
},
4954
"links": {
5055
"type": "array",
5156
"items": {"$ref": "#/definitions/linkDescription"}
5257
},
53-
"fragmentResolution": {
54-
"type": "string"
55-
},
5658
"media": {
5759
"type": "object",
5860
"properties": {
@@ -65,11 +67,6 @@
6567
"type": "string"
6668
}
6769
}
68-
},
69-
"pathStart": {
70-
"description": "Instances' URIs must start with this value for this schema to apply to them",
71-
"type": "string",
72-
"format": "uri"
7370
}
7471
},
7572
"definitions": {
@@ -80,7 +77,7 @@
8077
"linkDescription": {
8178
"title": "Link Description Object",
8279
"type": "object",
83-
"required": ["href", "rel"],
80+
"required": ["href"],
8481
"properties": {
8582
"href": {
8683
"description": "a URI template, as defined by RFC 6570, with the addition of the $, ( and ) characters for pre-processing",
@@ -103,7 +100,7 @@
103100
"type": "string"
104101
},
105102
"method": {
106-
"description": "method for requesting the target of the link (e.g. for HTTP this might be \"GET\" or \"DELETE\")",
103+
"description": "specifies that the client can construct a templated query (\"get\") or non-idempotent request (\"post\") to a resource.",
107104
"type": "string"
108105
},
109106
"encType": {

schema.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"id": "http://json-schema.org/draft-04/schema#",
3-
"$schema": "http://json-schema.org/draft-04/schema#",
4-
"description": "Core schema meta-schema",
2+
"id": "http://json-schema.org/draft-06/schema#",
3+
"$schema": "http://json-schema.org/draft-06/schema#",
4+
"description": "Core and validation schema meta-schema",
55
"definitions": {
66
"schemaArray": {
77
"type": "array",
@@ -13,7 +13,10 @@
1313
"minimum": 0
1414
},
1515
"positiveIntegerDefault0": {
16-
"allOf": [ { "$ref": "#/definitions/positiveInteger" }, { "default": 0 } ]
16+
"allOf": [
17+
{ "$ref": "#/definitions/positiveInteger" },
18+
{ "default": 0 }
19+
]
1720
},
1821
"simpleTypes": {
1922
"enum": [ "array", "boolean", "integer", "null", "number", "object", "string" ]
@@ -29,7 +32,7 @@
2932
"properties": {
3033
"id": {
3134
"type": "string",
32-
"format": "uri"
35+
"format": "uriref"
3336
},
3437
"$schema": {
3538
"type": "string",

0 commit comments

Comments
 (0)