1
+ import id from "../draft-04/id.js" ;
2
+ import title from "../lib/keywords/title.js" ;
3
+ import description from "../lib/keywords/description.js" ;
4
+ import _default from "../lib/keywords/default.js" ;
5
+ import multipleOf from "../lib/keywords/multipleOf.js" ;
6
+ import maximum from "./maximum.js" ;
7
+ import exclusiveMaximum from "./exclusiveMaximum.js" ;
8
+ import minimum from "./minimum.js" ;
9
+ import exclusiveMinimum from "./exclusiveMinimum.js" ;
10
+ import maxLength from "../lib/keywords/maxLength.js" ;
11
+ import minLength from "../lib/keywords/minLength.js" ;
12
+ import pattern from "../lib/keywords/pattern.js" ;
13
+ import additionalItems from "./additionalItems.js" ;
14
+ import items from "./items.js" ;
15
+ import maxItems from "../lib/keywords/maxItems.js" ;
16
+ import minItems from "../lib/keywords/minItems.js" ;
17
+ import uniqueItems from "../lib/keywords/uniqueItems.js" ;
18
+ import maxProperties from "../lib/keywords/maxProperties.js" ;
19
+ import minProperties from "../lib/keywords/minProperties.js" ;
20
+ import required from "../lib/keywords/required.js" ;
21
+ import additionalProperties from "../lib/keywords/additionalProperties.js" ;
22
+ import definitions from "../lib/keywords/definitions.js" ;
23
+ import properties from "../lib/keywords/properties.js" ;
24
+ import patternProperties from "../lib/keywords/patternProperties.js" ;
25
+ import dependencies from "./dependencies.js" ;
26
+ import _enum from "../lib/keywords/enum.js" ;
27
+ import type from "../lib/keywords/type.js" ;
28
+ import format from "../lib/keywords/format.js" ;
29
+ import allOf from "../lib/keywords/allOf.js" ;
30
+ import anyOf from "../lib/keywords/anyOf.js" ;
31
+ import oneOf from "../lib/keywords/oneOf.js" ;
32
+ import not from "../lib/keywords/not.js" ;
33
+
34
+
1
35
export default {
2
36
"id" : "http://json-schema.org/draft-04/schema#" ,
3
37
"$schema" : "http://json-schema.org/draft-04/schema#" ,
@@ -28,87 +62,132 @@ export default {
28
62
"type" : "object" ,
29
63
"properties" : {
30
64
"id" : {
31
- "type" : "string"
65
+ "type" : "string" ,
66
+ "description" : id . description
32
67
} ,
33
68
"$schema" : {
34
- "type" : "string"
69
+ "type" : "string" ,
70
+ "description" : `This keyword is both used as a JSON Schema dialect \
71
+ identifier and as a reference to a JSON Schema which describes the set \
72
+ of valid schemas written for this particular dialect.`
35
73
} ,
36
74
"title" : {
37
- "type" : "string"
75
+ "type" : "string" ,
76
+ "description" : title . description
38
77
} ,
39
78
"description" : {
40
- "type" : "string"
79
+ "type" : "string" ,
80
+ "description" : description . description
81
+ } ,
82
+ "default" : {
83
+ "description" : _default . description
41
84
} ,
42
- "default" : { } ,
43
85
"multipleOf" : {
44
86
"type" : "number" ,
45
87
"minimum" : 0 ,
46
- "exclusiveMinimum" : true
88
+ "exclusiveMinimum" : true ,
89
+ "description" : multipleOf . description
47
90
} ,
48
91
"maximum" : {
49
- "type" : "number"
92
+ "type" : "number" ,
93
+ "description" : maximum . description
50
94
} ,
51
95
"exclusiveMaximum" : {
52
96
"type" : "boolean" ,
53
- "default" : false
97
+ "default" : false ,
98
+ "description" : exclusiveMaximum . description
54
99
} ,
55
100
"minimum" : {
56
- "type" : "number"
101
+ "type" : "number" ,
102
+ "description" : minimum . description
57
103
} ,
58
104
"exclusiveMinimum" : {
59
105
"type" : "boolean" ,
60
- "default" : false
106
+ "default" : false ,
107
+ "description" : exclusiveMinimum . description
108
+ } ,
109
+ "maxLength" : {
110
+ "allOf" : [ { "$ref" : "#/definitions/positiveInteger" } ] ,
111
+ "description" : maxLength . description
112
+ } ,
113
+ "minLength" : {
114
+ "allOf" : [ { "$ref" : "#/definitions/positiveIntegerDefault0" } ] ,
115
+ "description" : minLength . description
61
116
} ,
62
- "maxLength" : { "$ref" : "#/definitions/positiveInteger" } ,
63
- "minLength" : { "$ref" : "#/definitions/positiveIntegerDefault0" } ,
64
117
"pattern" : {
65
118
"type" : "string" ,
66
- "format" : "regex"
119
+ "format" : "regex" ,
120
+ "description" : pattern . description
67
121
} ,
68
122
"additionalItems" : {
69
123
"anyOf" : [
70
124
{ "type" : "boolean" } ,
71
125
{ "$ref" : "#" }
72
126
] ,
73
- "default" : { }
127
+ "default" : { } ,
128
+ "description" : additionalItems . description
74
129
} ,
75
130
"items" : {
76
131
"anyOf" : [
77
132
{ "$ref" : "#" } ,
78
133
{ "$ref" : "#/definitions/schemaArray" }
79
134
] ,
80
- "default" : { }
135
+ "default" : { } ,
136
+ "description" : items . description
137
+ } ,
138
+ "maxItems" : {
139
+ "allOf" : [ { "$ref" : "#/definitions/positiveInteger" } ] ,
140
+ "description" : maxItems . description
141
+ } ,
142
+ "minItems" : {
143
+ "allOf" : [ { "$ref" : "#/definitions/positiveIntegerDefault0" } ] ,
144
+ "description" : minItems . description
81
145
} ,
82
- "maxItems" : { "$ref" : "#/definitions/positiveInteger" } ,
83
- "minItems" : { "$ref" : "#/definitions/positiveIntegerDefault0" } ,
84
146
"uniqueItems" : {
85
147
"type" : "boolean" ,
86
- "default" : false
148
+ "default" : false ,
149
+ "description" : uniqueItems . description
150
+ } ,
151
+ "maxProperties" : {
152
+ "allOf" : [
153
+ { "$ref" : "#/definitions/positiveIntegerDefault0" } ,
154
+ { "$ref" : "#/definitions/positiveInteger" }
155
+ ] ,
156
+ "description" : maxProperties . description
157
+ } ,
158
+ "minProperties" : {
159
+ "allOf" : [ { "$ref" : "#/definitions/positiveIntegerDefault0" } ] ,
160
+ "description" : minProperties . description
161
+ } ,
162
+ "required" : {
163
+ "allOf" : [ { "$ref" : "#/definitions/stringArray" } ] ,
164
+ "description" : required . description
87
165
} ,
88
- "maxProperties" : { "$ref" : "#/definitions/positiveInteger" } ,
89
- "minProperties" : { "$ref" : "#/definitions/positiveIntegerDefault0" } ,
90
- "required" : { "$ref" : "#/definitions/stringArray" } ,
91
166
"additionalProperties" : {
92
167
"anyOf" : [
93
168
{ "type" : "boolean" } ,
94
169
{ "$ref" : "#" }
95
170
] ,
96
- "default" : { }
171
+ "default" : { } ,
172
+ "description" : additionalProperties . description
97
173
} ,
98
174
"definitions" : {
99
175
"type" : "object" ,
100
176
"additionalProperties" : { "$ref" : "#" } ,
101
- "default" : { }
177
+ "default" : { } ,
178
+ "description" : definitions . description
102
179
} ,
103
180
"properties" : {
104
181
"type" : "object" ,
105
182
"additionalProperties" : { "$ref" : "#" } ,
106
- "default" : { }
183
+ "default" : { } ,
184
+ "description" : properties . description
107
185
} ,
108
186
"patternProperties" : {
109
187
"type" : "object" ,
110
188
"additionalProperties" : { "$ref" : "#" } ,
111
- "default" : { }
189
+ "default" : { } ,
190
+ "description" : patternProperties . description
112
191
} ,
113
192
"dependencies" : {
114
193
"type" : "object" ,
@@ -117,12 +196,14 @@ export default {
117
196
{ "$ref" : "#" } ,
118
197
{ "$ref" : "#/definitions/stringArray" }
119
198
]
120
- }
199
+ } ,
200
+ "description" : dependencies . description
121
201
} ,
122
202
"enum" : {
123
203
"type" : "array" ,
124
204
"minItems" : 1 ,
125
- "uniqueItems" : true
205
+ "uniqueItems" : true ,
206
+ "description" : _enum . description
126
207
} ,
127
208
"type" : {
128
209
"anyOf" : [
@@ -133,13 +214,26 @@ export default {
133
214
"minItems" : 1 ,
134
215
"uniqueItems" : true
135
216
}
136
- ]
217
+ ] ,
218
+ "description" : type . description
219
+ } ,
220
+ "format" : { "type" : "string" , "description" : format . description } ,
221
+ "allOf" : {
222
+ "allOf" : [ { "$ref" : "#/definitions/schemaArray" } ] ,
223
+ "description" : allOf . description
224
+ } ,
225
+ "anyOf" : {
226
+ "allOf" : [ { "$ref" : "#/definitions/schemaArray" } ] ,
227
+ "description" : anyOf . description
137
228
} ,
138
- "format" : { "type" : "string" } ,
139
- "allOf" : { "$ref" : "#/definitions/schemaArray" } ,
140
- "anyOf" : { "$ref" : "#/definitions/schemaArray" } ,
141
- "oneOf" : { "$ref" : "#/definitions/schemaArray" } ,
142
- "not" : { "$ref" : "#" }
229
+ "oneOf" : {
230
+ "allOf" : [ { "$ref" : "#/definitions/schemaArray" } ] ,
231
+ "description" : oneOf . description
232
+ } ,
233
+ "not" : {
234
+ "allOf" : [ { "$ref" : "#" } ] ,
235
+ "description" : not . description
236
+ }
143
237
} ,
144
238
"dependencies" : {
145
239
"exclusiveMaximum" : [ "maximum" ] ,
0 commit comments