1
1
{
2
- "id" : "http://json-schema.org/hyper-schema",
2
+ "id": "http://json-schema.org/hyper-schema",
3
3
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" }
8
8
},
9
9
10
- "fragmentResolution" : {
11
- "type" : "string",
12
- "default" : "slash-delimited"
10
+ "fragmentResolution": {
11
+ "type": "string",
12
+ "default": "slash-delimited"
13
13
},
14
14
15
- "root" : {
16
- "type" : "boolean",
17
- "default" : false
15
+ "root": {
16
+ "type": "boolean",
17
+ "default": false
18
18
},
19
19
20
- "readonly" : {
21
- "type" : "boolean",
22
- "default" : false
20
+ "readonly": {
21
+ "type": "boolean",
22
+ "default": false
23
23
},
24
24
25
- "pathStart" : {
26
- "type" : "string",
27
- "format" : "uri"
25
+ "pathStart": {
26
+ "type": "string",
27
+ "format": "uri"
28
28
},
29
29
30
- "mediaType" : {
31
- "type" : "string",
32
- "format" : "media-type"
30
+ "mediaType": {
31
+ "type": "string"
33
32
},
34
33
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" }
38
37
},
39
38
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" } ]
44
43
},
45
- "uniqueItems" : true,
46
- "default" : "any"
44
+ "uniqueItems": true,
45
+ "default": "any"
47
46
},
48
47
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": {}
53
52
},
54
53
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": {}
59
58
},
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": {}
63
62
},
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": {}
67
66
},
68
- "contentEncoding" : {
69
- "type" : "string"
67
+ "contentEncoding": {
68
+ "type": "string"
70
69
},
71
70
72
- "default" : {
71
+ "default": {
73
72
},
74
73
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" } ]
77
76
},
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" } ]
82
81
},
83
- "uniqueItems" : true
82
+ "uniqueItems": true
84
83
},
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": {}
89
88
}
90
89
91
90
},
92
91
93
- "links" : [
92
+ "links": [
94
93
{
95
- "href" : "{$schema}",
96
- "rel" : "describedby"
94
+ "href": "{$schema}",
95
+ "rel": "describedby"
97
96
},
98
97
99
98
{
100
- "href" : "{$ref}",
101
- "rel" : "full"
99
+ "href": "{$ref}",
100
+ "rel": "full"
102
101
}
103
102
],
104
103
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