|
2 | 2 | "$schema": "http://json-schema.org/draft/hyper-schema#",
|
3 | 3 | "id": "http://json-schema.org/draft/hyper-schema#",
|
4 | 4 | "title": "JSON Hyper-Schema",
|
5 |
| - "allOf": [ |
6 |
| - {"$ref": "http://json-schema.org/draft-04/schema#"} |
7 |
| - ], |
| 5 | + "allOf": [ { "$ref": "http://json-schema.org/draft/schema#" } ], |
8 | 6 | "properties": {
|
9 | 7 | "additionalItems": {
|
10 | 8 | "anyOf": [
|
11 |
| - {"type": "boolean"}, |
12 |
| - {"$ref": "#"} |
| 9 | + { "type": "boolean" }, |
| 10 | + { "$ref": "#" } |
13 | 11 | ]
|
14 | 12 | },
|
15 | 13 | "additionalProperties": {
|
16 | 14 | "anyOf": [
|
17 |
| - {"type": "boolean"}, |
18 |
| - {"$ref": "#"} |
| 15 | + { "type": "boolean" }, |
| 16 | + { "$ref": "#" } |
19 | 17 | ]
|
20 | 18 | },
|
21 | 19 | "dependencies": {
|
22 | 20 | "additionalProperties": {
|
23 | 21 | "anyOf": [
|
24 |
| - {"$ref": "#"}, |
25 |
| - {"type": "array"} |
| 22 | + { "$ref": "#" }, |
| 23 | + { "type": "array" } |
26 | 24 | ]
|
27 | 25 | }
|
28 | 26 | },
|
29 | 27 | "items": {
|
30 | 28 | "anyOf": [
|
31 |
| - {"$ref": "#"}, |
32 |
| - {"$ref": "#/definitions/schemaArray"} |
| 29 | + { "$ref": "#" }, |
| 30 | + { "$ref": "#/definitions/schemaArray" } |
33 | 31 | ]
|
34 | 32 | },
|
35 | 33 | "definitions": {
|
36 |
| - "additionalProperties": {"$ref": "#"} |
| 34 | + "additionalProperties": { "$ref": "#" } |
37 | 35 | },
|
38 | 36 | "patternProperties": {
|
39 |
| - "additionalProperties": {"$ref": "#"} |
| 37 | + "additionalProperties": { "$ref": "#" } |
40 | 38 | },
|
41 | 39 | "properties": {
|
42 |
| - "additionalProperties": {"$ref": "#"} |
| 40 | + "additionalProperties": { "$ref": "#" } |
43 | 41 | },
|
44 |
| - "allOf": {"$ref": "#/definitions/schemaArray"}, |
45 |
| - "anyOf": {"$ref": "#/definitions/schemaArray"}, |
46 |
| - "oneOf": {"$ref": "#/definitions/schemaArray"}, |
| 42 | + "allOf": { "$ref": "#/definitions/schemaArray" }, |
| 43 | + "anyOf": { "$ref": "#/definitions/schemaArray" }, |
| 44 | + "oneOf": { "$ref": "#/definitions/schemaArray" }, |
47 | 45 | "not": { "$ref": "#" },
|
48 | 46 |
|
49 | 47 | "base": {
|
|
52 | 50 | },
|
53 | 51 | "links": {
|
54 | 52 | "type": "array",
|
55 |
| - "items": {"$ref": "#/definitions/linkDescription"} |
| 53 | + "items": { "$ref": "#/definitions/linkDescription" } |
56 | 54 | },
|
57 | 55 | "media": {
|
58 | 56 | "type": "object",
|
|
66 | 64 | "type": "string"
|
67 | 65 | }
|
68 | 66 | }
|
| 67 | + }, |
| 68 | + "readOnly": { |
| 69 | + "description": "If true, indicates that the value of this property is controlled by the server.", |
| 70 | + "type": "boolean", |
| 71 | + "default": "false" |
69 | 72 | }
|
70 | 73 | },
|
71 | 74 | "definitions": {
|
72 | 75 | "schemaArray": {
|
73 |
| - "type": "array", |
74 |
| - "items": {"$ref": "#"} |
| 76 | + "allOf": [ |
| 77 | + { "$ref": "http://json-schema.org/drafts/schema" }, |
| 78 | + { |
| 79 | + "items": { "$ref": "#" } |
| 80 | + } |
| 81 | + ] |
75 | 82 | },
|
76 | 83 | "linkDescription": {
|
77 | 84 | "title": "Link Description Object",
|
78 | 85 | "type": "object",
|
79 |
| - "required": ["href"], |
| 86 | + "required": [ "href" ], |
80 | 87 | "properties": {
|
81 | 88 | "href": {
|
82 | 89 | "description": "a URI template, as defined by RFC 6570, with the addition of the $, ( and ) characters for pre-processing",
|
|
92 | 99 | },
|
93 | 100 | "targetSchema": {
|
94 | 101 | "description": "JSON Schema describing the link target",
|
95 |
| - "$ref": "#" |
| 102 | + "allOf": [ { "$ref": "#" } ] |
96 | 103 | },
|
97 | 104 | "mediaType": {
|
98 | 105 | "description": "media type (as defined by RFC 2046) describing the link target",
|
|
109 | 116 | },
|
110 | 117 | "schema": {
|
111 | 118 | "description": "Schema describing the data to submit along with the request",
|
112 |
| - "$ref": "#" |
| 119 | + "allOf": [ { "$ref": "#" } ] |
113 | 120 | }
|
114 | 121 | }
|
115 | 122 | }
|
|
118 | 125 | {
|
119 | 126 | "rel": "self",
|
120 | 127 | "href": "{+id}"
|
121 |
| - }, |
122 |
| - { |
123 |
| - "rel": "full", |
124 |
| - "href": "{+($ref)}" |
125 | 128 | }
|
126 | 129 | ]
|
127 | 130 | }
|
0 commit comments