Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Commit a154f3b

Browse files
fgenickl-
authored andcommitted
hyper-schema: bring up to date, beautify
1 parent 255008c commit a154f3b

File tree

1 file changed

+64
-65
lines changed

1 file changed

+64
-65
lines changed

hyper-schema

Lines changed: 64 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,107 +1,106 @@
11
{
2-
"id" : "http://json-schema.org/hyper-schema",
2+
"id": "http://json-schema.org/hyper-schema",
33

4-
"properties" : {
5-
"links" : {
6-
"type" : "array",
7-
"items" : "http://json-schema.org/links"
4+
"properties": {
5+
"links": {
6+
"type": "array",
7+
"items": { "$ref": "http://json-schema.org/links" }
88
},
99

10-
"fragmentResolution" : {
11-
"type" : "string",
12-
"default" : "slash-delimited"
10+
"fragmentResolution": {
11+
"type": "string",
12+
"default": "slash-delimited"
1313
},
1414

15-
"root" : {
16-
"type" : "boolean",
17-
"default" : false
15+
"root": {
16+
"type": "boolean",
17+
"default": false
1818
},
1919

20-
"readonly" : {
21-
"type" : "boolean",
22-
"default" : false
20+
"readonly": {
21+
"type": "boolean",
22+
"default": false
2323
},
2424

25-
"pathStart" : {
26-
"type" : "string",
27-
"format" : "uri"
25+
"pathStart": {
26+
"type": "string",
27+
"format": "uri"
2828
},
2929

30-
"mediaType" : {
31-
"type" : "string",
32-
"format" : "media-type"
30+
"mediaType": {
31+
"type": "string"
3332
},
3433

35-
"alternate" : {
36-
"type" : "array",
37-
"items" : "http://json-schema.org/hyper-schema-or-uri"
34+
"alternate": {
35+
"type": "array",
36+
"items": { "$ref": "http://json-schema.org/hyper-schema-or-uri" }
3837
},
3938

40-
"type" : {
41-
"type" : ["string", "array"],
42-
"items" : {
43-
"type" : ["string", "http://json-schema.org/hyper-schema-or-uri"]
39+
"type": {
40+
"type": [ "string", "array" ],
41+
"items": {
42+
"type": [ "string", { "$ref": "http://json-schema.org/hyper-schema-or-uri" } ]
4443
},
45-
"uniqueItems" : true,
46-
"default" : "any"
44+
"uniqueItems": true,
45+
"default": "any"
4746
},
4847

49-
"properties" : {
50-
"type" : "object",
51-
"additionalProperties" : "http://json-schema.org/hyper-schema-or-uri",
52-
"default" : {}
48+
"properties": {
49+
"type": "object",
50+
"additionalProperties": { "$ref": "http://json-schema.org/hyper-schema-or-uri" },
51+
"default": {}
5352
},
5453

55-
"items" : {
56-
"type" : ["http://json-schema.org/hyper-schema-or-uri", "array"],
57-
"items" : "http://json-schema.org/hyper-schema-or-uri",
58-
"default" : {}
54+
"items": {
55+
"type": [ { "$ref": "http://json-schema.org/hyper-schema-or-uri" }, "array" ],
56+
"items": { "$ref": "http://json-schema.org/hyper-schema-or-uri" },
57+
"default": {}
5958
},
60-
"additionalProperties" : {
61-
"type" : ["http://json-schema.org/hyper-schema-or-uri", "boolean"],
62-
"default" : {}
59+
"additionalProperties": {
60+
"type": [ { "$ref": "http://json-schema.org/hyper-schema-or-uri" }, "boolean" ],
61+
"default": {}
6362
},
64-
"additionalItems" : {
65-
"type" : ["http://json-schema.org/hyper-schema-or-uri", "boolean"],
66-
"default" : {}
63+
"additionalItems": {
64+
"type": [ { "$ref": "http://json-schema.org/hyper-schema-or-uri" }, "boolean" ],
65+
"default": {}
6766
},
68-
"contentEncoding" : {
69-
"type" : "string"
67+
"contentEncoding": {
68+
"type": "string"
7069
},
7170

72-
"default" : {
71+
"default": {
7372
},
7473

75-
"requires" : {
76-
"type" : ["string", "http://json-schema.org/hyper-schema-or-uri"]
74+
"requires": {
75+
"type": [ "string", { "$ref": "http://json-schema.org/hyper-schema-or-uri" } ]
7776
},
78-
"disallow" : {
79-
"type" : ["string", "array", "http://json-schema.org/hyper-schema-or-uri"],
80-
"items" : {
81-
"type" : ["string", "http://json-schema.org/hyper-schema-or-uri"]
77+
"disallow": {
78+
"type": [ "string", "array", { "$ref": "http://json-schema.org/hyper-schema-or-uri" } ],
79+
"items": {
80+
"type": [ "string", { "$ref": "http://json-schema.org/hyper-schema-or-uri" } ]
8281
},
83-
"uniqueItems" : true
82+
"uniqueItems": true
8483
},
85-
"extends" : {
86-
"type" : ["http://json-schema.org/hyper-schema-or-uri", "array"],
87-
"items" : "http://json-schema.org/hyper-schema-or-uri",
88-
"default" : {}
84+
"extends": {
85+
"type": [ { "$ref": "http://json-schema.org/hyper-schema-or-uri" }, "array"],
86+
"items": { "$ref": "http://json-schema.org/hyper-schema-or-uri" },
87+
"default": {}
8988
}
9089

9190
},
9291

93-
"links" : [
92+
"links": [
9493
{
95-
"href" : "{$schema}",
96-
"rel" : "describedby"
94+
"href": "{$schema}",
95+
"rel": "describedby"
9796
},
9897

9998
{
100-
"href" : "{$ref}",
101-
"rel" : "full"
99+
"href": "{$ref}",
100+
"rel": "full"
102101
}
103102
],
104103

105-
"fragmentResolution" : "dot-delimited",
106-
"extends" : "http://json-schema.org/schema"
107-
}
104+
"fragmentResolution": "dot-delimited",
105+
"extends": { "$ref": "http://json-schema.org/schema" }
106+
}

0 commit comments

Comments
 (0)