@aws-cdk/service-spec-importers 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +89 -0
- package/bin/analyze-db +2 -0
- package/bin/diff-db +2 -0
- package/bin/import-db +2 -0
- package/lib/cli/analyze-db.d.ts +1 -0
- package/lib/cli/analyze-db.js +56 -0
- package/lib/cli/diff-db.d.ts +1 -0
- package/lib/cli/diff-db.js +36 -0
- package/lib/cli/import-db.d.ts +1 -0
- package/lib/cli/import-db.js +123 -0
- package/lib/cli/util.d.ts +4 -0
- package/lib/cli/util.js +23 -0
- package/lib/db-builder.d.ts +74 -0
- package/lib/db-builder.js +144 -0
- package/lib/db-diff.d.ts +24 -0
- package/lib/db-diff.js +104 -0
- package/lib/diff-fmt.d.ts +16 -0
- package/lib/diff-fmt.js +218 -0
- package/lib/diff-helpers.d.ts +21 -0
- package/lib/diff-helpers.js +123 -0
- package/lib/importers/import-canned-metrics.d.ts +4 -0
- package/lib/importers/import-canned-metrics.js +65 -0
- package/lib/importers/import-cloudformation-docs.d.ts +3 -0
- package/lib/importers/import-cloudformation-docs.js +44 -0
- package/lib/importers/import-cloudformation-registry.d.ts +10 -0
- package/lib/importers/import-cloudformation-registry.js +326 -0
- package/lib/importers/import-resource-spec.d.ts +67 -0
- package/lib/importers/import-resource-spec.js +255 -0
- package/lib/importers/import-sam.d.ts +42 -0
- package/lib/importers/import-sam.js +115 -0
- package/lib/importers/import-stateful-resources.d.ts +3 -0
- package/lib/importers/import-stateful-resources.js +12 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.js +36 -0
- package/lib/loaders/index.d.ts +8 -0
- package/lib/loaders/index.js +25 -0
- package/lib/loaders/load-cloudformation-docs.d.ts +3 -0
- package/lib/loaders/load-cloudformation-docs.js +15 -0
- package/lib/loaders/load-cloudformation-registry.d.ts +16 -0
- package/lib/loaders/load-cloudformation-registry.js +72 -0
- package/lib/loaders/load-cloudwatch-console-service-directory.d.ts +3 -0
- package/lib/loaders/load-cloudwatch-console-service-directory.js +13 -0
- package/lib/loaders/load-resource-spec.d.ts +3 -0
- package/lib/loaders/load-resource-spec.js +54 -0
- package/lib/loaders/load-sam-schema.d.ts +11 -0
- package/lib/loaders/load-sam-schema.js +21 -0
- package/lib/loaders/load-sam-spec.d.ts +6 -0
- package/lib/loaders/load-sam-spec.js +20 -0
- package/lib/loaders/load-stateful-resources.d.ts +3 -0
- package/lib/loaders/load-stateful-resources.js +15 -0
- package/lib/loaders/loader.d.ts +77 -0
- package/lib/loaders/loader.js +181 -0
- package/lib/patches/index.d.ts +2 -0
- package/lib/patches/index.js +21 -0
- package/lib/patches/json-schema-patches.d.ts +70 -0
- package/lib/patches/json-schema-patches.js +215 -0
- package/lib/patches/registry-patches.d.ts +49 -0
- package/lib/patches/registry-patches.js +250 -0
- package/lib/patching/field-witnesses.d.ts +18 -0
- package/lib/patching/field-witnesses.js +93 -0
- package/lib/patching/format-patch-report.d.ts +5 -0
- package/lib/patching/format-patch-report.js +157 -0
- package/lib/patching/fp/index.d.ts +1 -0
- package/lib/patching/fp/index.js +18 -0
- package/lib/patching/fp/patch.d.ts +15 -0
- package/lib/patching/fp/patch.js +54 -0
- package/lib/patching/index.d.ts +6 -0
- package/lib/patching/index.js +36 -0
- package/lib/patching/json-lens.d.ts +54 -0
- package/lib/patching/json-lens.js +10 -0
- package/lib/patching/json-patch-set.d.ts +33 -0
- package/lib/patching/json-patch-set.js +269 -0
- package/lib/patching/patching.d.ts +65 -0
- package/lib/patching/patching.js +210 -0
- package/lib/patching/reason.d.ts +22 -0
- package/lib/patching/reason.js +37 -0
- package/lib/printable-tree.d.ts +19 -0
- package/lib/printable-tree.js +117 -0
- package/lib/report/index.d.ts +1 -0
- package/lib/report/index.js +18 -0
- package/lib/report/problem-report.d.ts +34 -0
- package/lib/report/problem-report.js +119 -0
- package/lib/report/sorting.d.ts +4 -0
- package/lib/report/sorting.js +29 -0
- package/lib/resource-builder.d.ts +88 -0
- package/lib/resource-builder.js +331 -0
- package/lib/schema-manipulation/unify-schemas.d.ts +8 -0
- package/lib/schema-manipulation/unify-schemas.js +213 -0
- package/lib/types/cloudformation-docs/CloudFormationDocumentation.d.ts +18 -0
- package/lib/types/cloudformation-docs/CloudFormationDocumentation.js +3 -0
- package/lib/types/cloudwatch-console-service-directory/CloudWatchConsoleServiceDirectory.d.ts +189 -0
- package/lib/types/cloudwatch-console-service-directory/CloudWatchConsoleServiceDirectory.js +12 -0
- package/lib/types/index.d.ts +7 -0
- package/lib/types/index.js +24 -0
- package/lib/types/registry-schema/CloudFormationRegistrySchema.d.ts +169 -0
- package/lib/types/registry-schema/CloudFormationRegistrySchema.js +17 -0
- package/lib/types/registry-schema/JsonSchema.d.ts +166 -0
- package/lib/types/registry-schema/JsonSchema.js +173 -0
- package/lib/types/resource-specification/resource-spec.d.ts +83 -0
- package/lib/types/resource-specification/resource-spec.js +17 -0
- package/lib/types/sam/SamTemplateSchema.d.ts +5 -0
- package/lib/types/sam/SamTemplateSchema.js +3 -0
- package/lib/types/stateful-resources/StatefulResources.d.ts +8 -0
- package/lib/types/stateful-resources/StatefulResources.js +3 -0
- package/package.json +119 -0
- package/schemas/CloudFormationDocumentation.schema.json +43 -0
- package/schemas/CloudFormationRegistryResource.schema.json +818 -0
- package/schemas/CloudFormationResourceSpecification.schema.json +184 -0
- package/schemas/CloudWatchConsoleServiceDirectory.schema.json +536 -0
- package/schemas/ResourceSpecification.schema.json +144 -0
- package/schemas/SAMResourceSpecification.schema.json +228 -0
- package/schemas/SamTemplateSchema.schema.json +534 -0
- package/schemas/StatefulResources.schema.json +30 -0
|
@@ -0,0 +1,534 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/SamTemplateSchema",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"SamTemplateSchema": {
|
|
6
|
+
"$ref": "#/definitions/jsonschema.SchemaFile",
|
|
7
|
+
"description": "The SAM schema is just JSON schema with no frills"
|
|
8
|
+
},
|
|
9
|
+
"jsonschema.AllOf<Schema>": {
|
|
10
|
+
"additionalProperties": false,
|
|
11
|
+
"properties": {
|
|
12
|
+
"$comment": {
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"allOf": {
|
|
16
|
+
"items": {
|
|
17
|
+
"$ref": "#/definitions/jsonschema.Schema"
|
|
18
|
+
},
|
|
19
|
+
"type": "array"
|
|
20
|
+
},
|
|
21
|
+
"description": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"title": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"required": [
|
|
29
|
+
"allOf"
|
|
30
|
+
],
|
|
31
|
+
"type": "object"
|
|
32
|
+
},
|
|
33
|
+
"jsonschema.AnyOf<Schema>": {
|
|
34
|
+
"additionalProperties": false,
|
|
35
|
+
"properties": {
|
|
36
|
+
"$comment": {
|
|
37
|
+
"type": "string"
|
|
38
|
+
},
|
|
39
|
+
"anyOf": {
|
|
40
|
+
"items": {
|
|
41
|
+
"$ref": "#/definitions/jsonschema.Schema"
|
|
42
|
+
},
|
|
43
|
+
"type": "array"
|
|
44
|
+
},
|
|
45
|
+
"description": {
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
48
|
+
"title": {
|
|
49
|
+
"type": "string"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"required": [
|
|
53
|
+
"anyOf"
|
|
54
|
+
],
|
|
55
|
+
"type": "object"
|
|
56
|
+
},
|
|
57
|
+
"jsonschema.AnyType": {
|
|
58
|
+
"const": true,
|
|
59
|
+
"type": "boolean"
|
|
60
|
+
},
|
|
61
|
+
"jsonschema.Boolean": {
|
|
62
|
+
"additionalProperties": false,
|
|
63
|
+
"properties": {
|
|
64
|
+
"$comment": {
|
|
65
|
+
"type": "string"
|
|
66
|
+
},
|
|
67
|
+
"default": {
|
|
68
|
+
"type": "boolean"
|
|
69
|
+
},
|
|
70
|
+
"description": {
|
|
71
|
+
"type": "string"
|
|
72
|
+
},
|
|
73
|
+
"title": {
|
|
74
|
+
"type": "string"
|
|
75
|
+
},
|
|
76
|
+
"type": {
|
|
77
|
+
"const": "boolean",
|
|
78
|
+
"type": "string"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"required": [
|
|
82
|
+
"type"
|
|
83
|
+
],
|
|
84
|
+
"type": "object"
|
|
85
|
+
},
|
|
86
|
+
"jsonschema.ConcreteSingletonSchema": {
|
|
87
|
+
"anyOf": [
|
|
88
|
+
{
|
|
89
|
+
"$ref": "#/definitions/jsonschema.Object"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"$ref": "#/definitions/jsonschema.String"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"$ref": "#/definitions/jsonschema.SchemaArray"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"$ref": "#/definitions/jsonschema.Boolean"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"$ref": "#/definitions/jsonschema.Number"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"$ref": "#/definitions/jsonschema.Null"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"$ref": "#/definitions/jsonschema.AnyType"
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
"jsonschema.MapLikeObject": {
|
|
112
|
+
"additionalProperties": false,
|
|
113
|
+
"properties": {
|
|
114
|
+
"$comment": {
|
|
115
|
+
"type": "string"
|
|
116
|
+
},
|
|
117
|
+
"additionalProperties": {
|
|
118
|
+
"anyOf": [
|
|
119
|
+
{
|
|
120
|
+
"const": false,
|
|
121
|
+
"type": "boolean"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"$ref": "#/definitions/jsonschema.Schema"
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"default": true,
|
|
128
|
+
"description": "additionalProperties validates all keys that aren't otherwise validated by properties or patternProperties"
|
|
129
|
+
},
|
|
130
|
+
"description": {
|
|
131
|
+
"type": "string"
|
|
132
|
+
},
|
|
133
|
+
"maxProperties": {
|
|
134
|
+
"type": "number"
|
|
135
|
+
},
|
|
136
|
+
"minProperties": {
|
|
137
|
+
"type": "number"
|
|
138
|
+
},
|
|
139
|
+
"patternProperties": {
|
|
140
|
+
"additionalProperties": {
|
|
141
|
+
"$ref": "#/definitions/jsonschema.Schema"
|
|
142
|
+
},
|
|
143
|
+
"type": "object"
|
|
144
|
+
},
|
|
145
|
+
"required": {
|
|
146
|
+
"description": "Required keys in a map\n\nDoesn't really make a whole lot of sense, but this is used to support mixed map/record types.",
|
|
147
|
+
"items": {
|
|
148
|
+
"type": "string"
|
|
149
|
+
},
|
|
150
|
+
"type": "array"
|
|
151
|
+
},
|
|
152
|
+
"title": {
|
|
153
|
+
"type": "string"
|
|
154
|
+
},
|
|
155
|
+
"type": {
|
|
156
|
+
"const": "object",
|
|
157
|
+
"type": "string"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"required": [
|
|
161
|
+
"type"
|
|
162
|
+
],
|
|
163
|
+
"type": "object"
|
|
164
|
+
},
|
|
165
|
+
"jsonschema.Null": {
|
|
166
|
+
"additionalProperties": false,
|
|
167
|
+
"properties": {
|
|
168
|
+
"$comment": {
|
|
169
|
+
"type": "string"
|
|
170
|
+
},
|
|
171
|
+
"description": {
|
|
172
|
+
"type": "string"
|
|
173
|
+
},
|
|
174
|
+
"title": {
|
|
175
|
+
"type": "string"
|
|
176
|
+
},
|
|
177
|
+
"type": {
|
|
178
|
+
"const": "null",
|
|
179
|
+
"type": "string"
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"required": [
|
|
183
|
+
"type"
|
|
184
|
+
],
|
|
185
|
+
"type": "object"
|
|
186
|
+
},
|
|
187
|
+
"jsonschema.Number": {
|
|
188
|
+
"additionalProperties": false,
|
|
189
|
+
"properties": {
|
|
190
|
+
"$comment": {
|
|
191
|
+
"type": "string"
|
|
192
|
+
},
|
|
193
|
+
"default": {
|
|
194
|
+
"type": "number"
|
|
195
|
+
},
|
|
196
|
+
"description": {
|
|
197
|
+
"type": "string"
|
|
198
|
+
},
|
|
199
|
+
"enum": {
|
|
200
|
+
"items": {
|
|
201
|
+
"type": "number"
|
|
202
|
+
},
|
|
203
|
+
"type": "array"
|
|
204
|
+
},
|
|
205
|
+
"format": {
|
|
206
|
+
"enum": [
|
|
207
|
+
"int64",
|
|
208
|
+
"double"
|
|
209
|
+
],
|
|
210
|
+
"type": "string"
|
|
211
|
+
},
|
|
212
|
+
"maximum": {
|
|
213
|
+
"type": "number"
|
|
214
|
+
},
|
|
215
|
+
"minimum": {
|
|
216
|
+
"type": "number"
|
|
217
|
+
},
|
|
218
|
+
"multipleOf": {
|
|
219
|
+
"type": "number"
|
|
220
|
+
},
|
|
221
|
+
"title": {
|
|
222
|
+
"type": "string"
|
|
223
|
+
},
|
|
224
|
+
"type": {
|
|
225
|
+
"enum": [
|
|
226
|
+
"number",
|
|
227
|
+
"integer"
|
|
228
|
+
],
|
|
229
|
+
"type": "string"
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"required": [
|
|
233
|
+
"type"
|
|
234
|
+
],
|
|
235
|
+
"type": "object"
|
|
236
|
+
},
|
|
237
|
+
"jsonschema.Object": {
|
|
238
|
+
"anyOf": [
|
|
239
|
+
{
|
|
240
|
+
"$ref": "#/definitions/jsonschema.MapLikeObject"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"$ref": "#/definitions/jsonschema.RecordLikeObject"
|
|
244
|
+
}
|
|
245
|
+
]
|
|
246
|
+
},
|
|
247
|
+
"jsonschema.ObjectProperties": {
|
|
248
|
+
"additionalProperties": {
|
|
249
|
+
"$ref": "#/definitions/jsonschema.Schema"
|
|
250
|
+
},
|
|
251
|
+
"type": "object"
|
|
252
|
+
},
|
|
253
|
+
"jsonschema.OneOf<Schema>": {
|
|
254
|
+
"additionalProperties": false,
|
|
255
|
+
"properties": {
|
|
256
|
+
"$comment": {
|
|
257
|
+
"type": "string"
|
|
258
|
+
},
|
|
259
|
+
"description": {
|
|
260
|
+
"type": "string"
|
|
261
|
+
},
|
|
262
|
+
"oneOf": {
|
|
263
|
+
"items": {
|
|
264
|
+
"$ref": "#/definitions/jsonschema.Schema"
|
|
265
|
+
},
|
|
266
|
+
"type": "array"
|
|
267
|
+
},
|
|
268
|
+
"title": {
|
|
269
|
+
"type": "string"
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
"required": [
|
|
273
|
+
"oneOf"
|
|
274
|
+
],
|
|
275
|
+
"type": "object"
|
|
276
|
+
},
|
|
277
|
+
"jsonschema.RecordLikeObject": {
|
|
278
|
+
"additionalProperties": false,
|
|
279
|
+
"properties": {
|
|
280
|
+
"$comment": {
|
|
281
|
+
"type": "string"
|
|
282
|
+
},
|
|
283
|
+
"additionalProperties": {
|
|
284
|
+
"const": false,
|
|
285
|
+
"description": "FIXME: should be required but some service teams have omitted it.",
|
|
286
|
+
"type": "boolean"
|
|
287
|
+
},
|
|
288
|
+
"description": {
|
|
289
|
+
"type": "string"
|
|
290
|
+
},
|
|
291
|
+
"maxProperties": {
|
|
292
|
+
"type": "number"
|
|
293
|
+
},
|
|
294
|
+
"minProperties": {
|
|
295
|
+
"description": "FIXME: these are weird but oh hey?",
|
|
296
|
+
"type": "number"
|
|
297
|
+
},
|
|
298
|
+
"properties": {
|
|
299
|
+
"$ref": "#/definitions/jsonschema.ObjectProperties"
|
|
300
|
+
},
|
|
301
|
+
"required": {
|
|
302
|
+
"items": {
|
|
303
|
+
"type": "string"
|
|
304
|
+
},
|
|
305
|
+
"type": "array"
|
|
306
|
+
},
|
|
307
|
+
"title": {
|
|
308
|
+
"type": "string"
|
|
309
|
+
},
|
|
310
|
+
"type": {
|
|
311
|
+
"const": "object",
|
|
312
|
+
"type": "string"
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
"required": [
|
|
316
|
+
"type",
|
|
317
|
+
"properties"
|
|
318
|
+
],
|
|
319
|
+
"type": "object"
|
|
320
|
+
},
|
|
321
|
+
"jsonschema.Reference": {
|
|
322
|
+
"additionalProperties": false,
|
|
323
|
+
"properties": {
|
|
324
|
+
"$comment": {
|
|
325
|
+
"type": "string"
|
|
326
|
+
},
|
|
327
|
+
"$ref": {
|
|
328
|
+
"type": "string"
|
|
329
|
+
},
|
|
330
|
+
"description": {
|
|
331
|
+
"type": "string"
|
|
332
|
+
},
|
|
333
|
+
"title": {
|
|
334
|
+
"type": "string"
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"required": [
|
|
338
|
+
"$ref"
|
|
339
|
+
],
|
|
340
|
+
"type": "object"
|
|
341
|
+
},
|
|
342
|
+
"jsonschema.Schema": {
|
|
343
|
+
"anyOf": [
|
|
344
|
+
{
|
|
345
|
+
"$ref": "#/definitions/jsonschema.SingletonSchema"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"$ref": "#/definitions/jsonschema.OneOf%3CSchema%3E"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"$ref": "#/definitions/jsonschema.AnyOf%3CSchema%3E"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"$ref": "#/definitions/jsonschema.AllOf%3CSchema%3E"
|
|
355
|
+
}
|
|
356
|
+
]
|
|
357
|
+
},
|
|
358
|
+
"jsonschema.SchemaArray": {
|
|
359
|
+
"additionalProperties": false,
|
|
360
|
+
"properties": {
|
|
361
|
+
"$comment": {
|
|
362
|
+
"type": "string"
|
|
363
|
+
},
|
|
364
|
+
"arrayType": {
|
|
365
|
+
"description": "Does this array describe full reality?\n\n- If `Standard`, real elements must be exactly equal to the given array.\n- If `AttributeList`, the real array may be a superset of the given array.",
|
|
366
|
+
"enum": [
|
|
367
|
+
"AttributeList",
|
|
368
|
+
"Standard"
|
|
369
|
+
],
|
|
370
|
+
"type": "string"
|
|
371
|
+
},
|
|
372
|
+
"default": {
|
|
373
|
+
"items": {},
|
|
374
|
+
"type": "array"
|
|
375
|
+
},
|
|
376
|
+
"description": {
|
|
377
|
+
"type": "string"
|
|
378
|
+
},
|
|
379
|
+
"examples": {
|
|
380
|
+
"items": {},
|
|
381
|
+
"type": "array"
|
|
382
|
+
},
|
|
383
|
+
"insertionOrder": {
|
|
384
|
+
"description": "Whether to treat the order as significant\n\nIn other words, does this array model a \"sequence\" or a \"multiset\".\n\n- `true` (default): order is significant, the array is a sequence.\n- `false`: order is insignificant, the array is a set.",
|
|
385
|
+
"type": "boolean"
|
|
386
|
+
},
|
|
387
|
+
"items": {
|
|
388
|
+
"$ref": "#/definitions/jsonschema.Schema"
|
|
389
|
+
},
|
|
390
|
+
"maxItems": {
|
|
391
|
+
"type": "number"
|
|
392
|
+
},
|
|
393
|
+
"minItems": {
|
|
394
|
+
"type": "number"
|
|
395
|
+
},
|
|
396
|
+
"title": {
|
|
397
|
+
"type": "string"
|
|
398
|
+
},
|
|
399
|
+
"type": {
|
|
400
|
+
"const": "array",
|
|
401
|
+
"type": "string"
|
|
402
|
+
},
|
|
403
|
+
"uniqueItems": {
|
|
404
|
+
"type": "boolean"
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
"required": [
|
|
408
|
+
"type"
|
|
409
|
+
],
|
|
410
|
+
"type": "object"
|
|
411
|
+
},
|
|
412
|
+
"jsonschema.SchemaFile": {
|
|
413
|
+
"additionalProperties": false,
|
|
414
|
+
"properties": {
|
|
415
|
+
"$comment": {
|
|
416
|
+
"type": "string"
|
|
417
|
+
},
|
|
418
|
+
"$id": {
|
|
419
|
+
"type": "string"
|
|
420
|
+
},
|
|
421
|
+
"additionalProperties": {
|
|
422
|
+
"const": false,
|
|
423
|
+
"description": "FIXME: should be required but some service teams have omitted it.",
|
|
424
|
+
"type": "boolean"
|
|
425
|
+
},
|
|
426
|
+
"definitions": {
|
|
427
|
+
"additionalProperties": {
|
|
428
|
+
"$ref": "#/definitions/jsonschema.Schema"
|
|
429
|
+
},
|
|
430
|
+
"description": "Reusable schema type definitions used in this schema.",
|
|
431
|
+
"type": "object"
|
|
432
|
+
},
|
|
433
|
+
"description": {
|
|
434
|
+
"type": "string"
|
|
435
|
+
},
|
|
436
|
+
"maxProperties": {
|
|
437
|
+
"type": "number"
|
|
438
|
+
},
|
|
439
|
+
"minProperties": {
|
|
440
|
+
"description": "FIXME: these are weird but oh hey?",
|
|
441
|
+
"type": "number"
|
|
442
|
+
},
|
|
443
|
+
"properties": {
|
|
444
|
+
"$ref": "#/definitions/jsonschema.ObjectProperties"
|
|
445
|
+
},
|
|
446
|
+
"required": {
|
|
447
|
+
"items": {
|
|
448
|
+
"type": "string"
|
|
449
|
+
},
|
|
450
|
+
"type": "array"
|
|
451
|
+
},
|
|
452
|
+
"title": {
|
|
453
|
+
"type": "string"
|
|
454
|
+
},
|
|
455
|
+
"type": {
|
|
456
|
+
"const": "object",
|
|
457
|
+
"type": "string"
|
|
458
|
+
}
|
|
459
|
+
},
|
|
460
|
+
"required": [
|
|
461
|
+
"properties",
|
|
462
|
+
"type"
|
|
463
|
+
],
|
|
464
|
+
"type": "object"
|
|
465
|
+
},
|
|
466
|
+
"jsonschema.SingletonSchema": {
|
|
467
|
+
"anyOf": [
|
|
468
|
+
{
|
|
469
|
+
"$ref": "#/definitions/jsonschema.Reference"
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"$ref": "#/definitions/jsonschema.ConcreteSingletonSchema"
|
|
473
|
+
}
|
|
474
|
+
]
|
|
475
|
+
},
|
|
476
|
+
"jsonschema.String": {
|
|
477
|
+
"additionalProperties": false,
|
|
478
|
+
"properties": {
|
|
479
|
+
"$comment": {
|
|
480
|
+
"type": "string"
|
|
481
|
+
},
|
|
482
|
+
"const": {
|
|
483
|
+
"type": "string"
|
|
484
|
+
},
|
|
485
|
+
"default": {
|
|
486
|
+
"type": "string"
|
|
487
|
+
},
|
|
488
|
+
"description": {
|
|
489
|
+
"type": "string"
|
|
490
|
+
},
|
|
491
|
+
"enum": {
|
|
492
|
+
"items": {
|
|
493
|
+
"type": "string"
|
|
494
|
+
},
|
|
495
|
+
"type": "array"
|
|
496
|
+
},
|
|
497
|
+
"examples": {
|
|
498
|
+
"items": {
|
|
499
|
+
"type": "string"
|
|
500
|
+
},
|
|
501
|
+
"type": "array"
|
|
502
|
+
},
|
|
503
|
+
"format": {
|
|
504
|
+
"enum": [
|
|
505
|
+
"date-time",
|
|
506
|
+
"uri",
|
|
507
|
+
"timestamp"
|
|
508
|
+
],
|
|
509
|
+
"type": "string"
|
|
510
|
+
},
|
|
511
|
+
"maxLength": {
|
|
512
|
+
"type": "number"
|
|
513
|
+
},
|
|
514
|
+
"minLength": {
|
|
515
|
+
"type": "number"
|
|
516
|
+
},
|
|
517
|
+
"pattern": {
|
|
518
|
+
"type": "string"
|
|
519
|
+
},
|
|
520
|
+
"title": {
|
|
521
|
+
"type": "string"
|
|
522
|
+
},
|
|
523
|
+
"type": {
|
|
524
|
+
"const": "string",
|
|
525
|
+
"type": "string"
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
"required": [
|
|
529
|
+
"type"
|
|
530
|
+
],
|
|
531
|
+
"type": "object"
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/StatefulResources",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"StatefulResources": {
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ResourceTypes": {
|
|
9
|
+
"additionalProperties": {
|
|
10
|
+
"$ref": "#/definitions/stateful.StatefulResourceAttributes"
|
|
11
|
+
},
|
|
12
|
+
"type": "object"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"required": [
|
|
16
|
+
"ResourceTypes"
|
|
17
|
+
],
|
|
18
|
+
"type": "object"
|
|
19
|
+
},
|
|
20
|
+
"stateful.StatefulResourceAttributes": {
|
|
21
|
+
"additionalProperties": false,
|
|
22
|
+
"properties": {
|
|
23
|
+
"DeleteRequiresEmptyResource": {
|
|
24
|
+
"type": "boolean"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"type": "object"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|