@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.
Files changed (114) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +89 -0
  3. package/bin/analyze-db +2 -0
  4. package/bin/diff-db +2 -0
  5. package/bin/import-db +2 -0
  6. package/lib/cli/analyze-db.d.ts +1 -0
  7. package/lib/cli/analyze-db.js +56 -0
  8. package/lib/cli/diff-db.d.ts +1 -0
  9. package/lib/cli/diff-db.js +36 -0
  10. package/lib/cli/import-db.d.ts +1 -0
  11. package/lib/cli/import-db.js +123 -0
  12. package/lib/cli/util.d.ts +4 -0
  13. package/lib/cli/util.js +23 -0
  14. package/lib/db-builder.d.ts +74 -0
  15. package/lib/db-builder.js +144 -0
  16. package/lib/db-diff.d.ts +24 -0
  17. package/lib/db-diff.js +104 -0
  18. package/lib/diff-fmt.d.ts +16 -0
  19. package/lib/diff-fmt.js +218 -0
  20. package/lib/diff-helpers.d.ts +21 -0
  21. package/lib/diff-helpers.js +123 -0
  22. package/lib/importers/import-canned-metrics.d.ts +4 -0
  23. package/lib/importers/import-canned-metrics.js +65 -0
  24. package/lib/importers/import-cloudformation-docs.d.ts +3 -0
  25. package/lib/importers/import-cloudformation-docs.js +44 -0
  26. package/lib/importers/import-cloudformation-registry.d.ts +10 -0
  27. package/lib/importers/import-cloudformation-registry.js +326 -0
  28. package/lib/importers/import-resource-spec.d.ts +67 -0
  29. package/lib/importers/import-resource-spec.js +255 -0
  30. package/lib/importers/import-sam.d.ts +42 -0
  31. package/lib/importers/import-sam.js +115 -0
  32. package/lib/importers/import-stateful-resources.d.ts +3 -0
  33. package/lib/importers/import-stateful-resources.js +12 -0
  34. package/lib/index.d.ts +6 -0
  35. package/lib/index.js +36 -0
  36. package/lib/loaders/index.d.ts +8 -0
  37. package/lib/loaders/index.js +25 -0
  38. package/lib/loaders/load-cloudformation-docs.d.ts +3 -0
  39. package/lib/loaders/load-cloudformation-docs.js +15 -0
  40. package/lib/loaders/load-cloudformation-registry.d.ts +16 -0
  41. package/lib/loaders/load-cloudformation-registry.js +72 -0
  42. package/lib/loaders/load-cloudwatch-console-service-directory.d.ts +3 -0
  43. package/lib/loaders/load-cloudwatch-console-service-directory.js +13 -0
  44. package/lib/loaders/load-resource-spec.d.ts +3 -0
  45. package/lib/loaders/load-resource-spec.js +54 -0
  46. package/lib/loaders/load-sam-schema.d.ts +11 -0
  47. package/lib/loaders/load-sam-schema.js +21 -0
  48. package/lib/loaders/load-sam-spec.d.ts +6 -0
  49. package/lib/loaders/load-sam-spec.js +20 -0
  50. package/lib/loaders/load-stateful-resources.d.ts +3 -0
  51. package/lib/loaders/load-stateful-resources.js +15 -0
  52. package/lib/loaders/loader.d.ts +77 -0
  53. package/lib/loaders/loader.js +181 -0
  54. package/lib/patches/index.d.ts +2 -0
  55. package/lib/patches/index.js +21 -0
  56. package/lib/patches/json-schema-patches.d.ts +70 -0
  57. package/lib/patches/json-schema-patches.js +215 -0
  58. package/lib/patches/registry-patches.d.ts +49 -0
  59. package/lib/patches/registry-patches.js +250 -0
  60. package/lib/patching/field-witnesses.d.ts +18 -0
  61. package/lib/patching/field-witnesses.js +93 -0
  62. package/lib/patching/format-patch-report.d.ts +5 -0
  63. package/lib/patching/format-patch-report.js +157 -0
  64. package/lib/patching/fp/index.d.ts +1 -0
  65. package/lib/patching/fp/index.js +18 -0
  66. package/lib/patching/fp/patch.d.ts +15 -0
  67. package/lib/patching/fp/patch.js +54 -0
  68. package/lib/patching/index.d.ts +6 -0
  69. package/lib/patching/index.js +36 -0
  70. package/lib/patching/json-lens.d.ts +54 -0
  71. package/lib/patching/json-lens.js +10 -0
  72. package/lib/patching/json-patch-set.d.ts +33 -0
  73. package/lib/patching/json-patch-set.js +269 -0
  74. package/lib/patching/patching.d.ts +65 -0
  75. package/lib/patching/patching.js +210 -0
  76. package/lib/patching/reason.d.ts +22 -0
  77. package/lib/patching/reason.js +37 -0
  78. package/lib/printable-tree.d.ts +19 -0
  79. package/lib/printable-tree.js +117 -0
  80. package/lib/report/index.d.ts +1 -0
  81. package/lib/report/index.js +18 -0
  82. package/lib/report/problem-report.d.ts +34 -0
  83. package/lib/report/problem-report.js +119 -0
  84. package/lib/report/sorting.d.ts +4 -0
  85. package/lib/report/sorting.js +29 -0
  86. package/lib/resource-builder.d.ts +88 -0
  87. package/lib/resource-builder.js +331 -0
  88. package/lib/schema-manipulation/unify-schemas.d.ts +8 -0
  89. package/lib/schema-manipulation/unify-schemas.js +213 -0
  90. package/lib/types/cloudformation-docs/CloudFormationDocumentation.d.ts +18 -0
  91. package/lib/types/cloudformation-docs/CloudFormationDocumentation.js +3 -0
  92. package/lib/types/cloudwatch-console-service-directory/CloudWatchConsoleServiceDirectory.d.ts +189 -0
  93. package/lib/types/cloudwatch-console-service-directory/CloudWatchConsoleServiceDirectory.js +12 -0
  94. package/lib/types/index.d.ts +7 -0
  95. package/lib/types/index.js +24 -0
  96. package/lib/types/registry-schema/CloudFormationRegistrySchema.d.ts +169 -0
  97. package/lib/types/registry-schema/CloudFormationRegistrySchema.js +17 -0
  98. package/lib/types/registry-schema/JsonSchema.d.ts +166 -0
  99. package/lib/types/registry-schema/JsonSchema.js +173 -0
  100. package/lib/types/resource-specification/resource-spec.d.ts +83 -0
  101. package/lib/types/resource-specification/resource-spec.js +17 -0
  102. package/lib/types/sam/SamTemplateSchema.d.ts +5 -0
  103. package/lib/types/sam/SamTemplateSchema.js +3 -0
  104. package/lib/types/stateful-resources/StatefulResources.d.ts +8 -0
  105. package/lib/types/stateful-resources/StatefulResources.js +3 -0
  106. package/package.json +119 -0
  107. package/schemas/CloudFormationDocumentation.schema.json +43 -0
  108. package/schemas/CloudFormationRegistryResource.schema.json +818 -0
  109. package/schemas/CloudFormationResourceSpecification.schema.json +184 -0
  110. package/schemas/CloudWatchConsoleServiceDirectory.schema.json +536 -0
  111. package/schemas/ResourceSpecification.schema.json +144 -0
  112. package/schemas/SAMResourceSpecification.schema.json +228 -0
  113. package/schemas/SamTemplateSchema.schema.json +534 -0
  114. package/schemas/StatefulResources.schema.json +30 -0
@@ -0,0 +1,818 @@
1
+ {
2
+ "$ref": "#/definitions/CloudFormationRegistryResource",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "definitions": {
5
+ "CloudFormationRegistryResource": {
6
+ "additionalProperties": false,
7
+ "description": "Root class of a CloudFormation Resource Registry Schema",
8
+ "properties": {
9
+ "$comment": {
10
+ "type": "string"
11
+ },
12
+ "$schema": {
13
+ "type": "string"
14
+ },
15
+ "additionalIdentifiers": {
16
+ "description": "Not sure what this is",
17
+ "items": {
18
+ "items": {
19
+ "type": "string"
20
+ },
21
+ "type": "array"
22
+ },
23
+ "type": "array"
24
+ },
25
+ "additionalProperties": {
26
+ "const": false,
27
+ "description": "FIXME: should be required but some service teams have omitted it.",
28
+ "type": "boolean"
29
+ },
30
+ "anyOf": {
31
+ "items": {
32
+ "additionalProperties": false,
33
+ "description": "Type combinator fields we commonly see at the resource level\n\n(They can be nested)",
34
+ "properties": {
35
+ "allOf": {
36
+ "items": {
37
+ "$ref": "#/definitions/interface-403906428-3451-3797-403906428-0-57631380716174"
38
+ },
39
+ "type": "array"
40
+ },
41
+ "anyOf": {
42
+ "items": {
43
+ "$ref": "#/definitions/interface-403906428-3451-3797-403906428-0-57631380716174"
44
+ },
45
+ "type": "array"
46
+ },
47
+ "oneOf": {
48
+ "items": {
49
+ "$ref": "#/definitions/interface-403906428-3451-3797-403906428-0-57631380716174"
50
+ },
51
+ "type": "array"
52
+ },
53
+ "required": {
54
+ "items": {
55
+ "type": "string"
56
+ },
57
+ "type": "array"
58
+ },
59
+ "type": {
60
+ "type": "string"
61
+ }
62
+ },
63
+ "type": "object"
64
+ },
65
+ "type": "array"
66
+ },
67
+ "conditionalCreateOnlyProperties": {
68
+ "description": "JSON pointers for properties that *may* cause a resource replacement if they are changed",
69
+ "items": {
70
+ "type": "string"
71
+ },
72
+ "type": "array"
73
+ },
74
+ "createOnlyProperties": {
75
+ "description": "JSON pointers for properties that will cause a resource replacement if they are changed",
76
+ "items": {
77
+ "type": "string"
78
+ },
79
+ "type": "array"
80
+ },
81
+ "definitions": {
82
+ "additionalProperties": {
83
+ "$ref": "#/definitions/jsonschema.Schema"
84
+ },
85
+ "description": "Reusable schema type definitions used in this schema.",
86
+ "type": "object"
87
+ },
88
+ "deprecatedProperties": {
89
+ "items": {
90
+ "type": "string"
91
+ },
92
+ "type": "array"
93
+ },
94
+ "description": {
95
+ "type": "string"
96
+ },
97
+ "documentationUrl": {
98
+ "type": "string"
99
+ },
100
+ "handlers": {
101
+ "$ref": "#/definitions/Handlers"
102
+ },
103
+ "maxProperties": {
104
+ "type": "number"
105
+ },
106
+ "minProperties": {
107
+ "description": "FIXME: these are weird but oh hey?",
108
+ "type": "number"
109
+ },
110
+ "oneOf": {
111
+ "description": "Technically this should have been canonicalized out, but that will complicate a lot of the rest of the code.\n\nSo we allow embedded oneOfs/anyOfs, only at the top level.",
112
+ "items": {
113
+ "additionalProperties": false,
114
+ "description": "Type combinator fields we commonly see at the resource level\n\n(They can be nested)",
115
+ "properties": {
116
+ "allOf": {
117
+ "items": {
118
+ "$ref": "#/definitions/interface-403906428-3451-3797-403906428-0-57631380716174"
119
+ },
120
+ "type": "array"
121
+ },
122
+ "anyOf": {
123
+ "items": {
124
+ "$ref": "#/definitions/interface-403906428-3451-3797-403906428-0-57631380716174"
125
+ },
126
+ "type": "array"
127
+ },
128
+ "oneOf": {
129
+ "items": {
130
+ "$ref": "#/definitions/interface-403906428-3451-3797-403906428-0-57631380716174"
131
+ },
132
+ "type": "array"
133
+ },
134
+ "required": {
135
+ "items": {
136
+ "type": "string"
137
+ },
138
+ "type": "array"
139
+ },
140
+ "type": {
141
+ "type": "string"
142
+ }
143
+ },
144
+ "type": "object"
145
+ },
146
+ "type": "array"
147
+ },
148
+ "primaryIdentifier": {
149
+ "description": "The properties that make up the primary identifier of the resource.\n\nThis is the value that is returned by `{ Ref }`. If there is more than one property they are joined using the symbol `\"|\"`.",
150
+ "items": {
151
+ "type": "string"
152
+ },
153
+ "type": "array"
154
+ },
155
+ "properties": {
156
+ "$ref": "#/definitions/jsonschema.ObjectProperties"
157
+ },
158
+ "propertyTransform": {
159
+ "additionalProperties": {
160
+ "type": "string"
161
+ },
162
+ "description": "Functions to apply to properties\n\nExample:\n\n``` \"propertyTransform\" : { \"/properties/DBClusterIdentifier\" : \"$lowercase(DBClusterIdentifier)\", \"/properties/DBClusterSnapshotIdentifier\" : \"$lowercase(DBClusterSnapshotIdentifier)\", \"/properties/MasterUserSecret/KmsKeyId\" : \"$join([\\\"arn:(aws)[-]{0,1}[a-z]{0,2}[-]{0,1}[a-z]{0,3}:kms:[a-z]{2}[-]{1}[a-z]{3,10}[-]{0,1}[a-z]{0,10}[-]{1}[1-3]{1}:[0-9]{12}[:]{1}key\\\\/\\\", KmsKeyId])\", \"/properties/KmsKeyId\" : \"$join([\\\"arn:(aws)[-]{0,1}[a-z]{0,2}[-]{0,1}[a-z]{0,3}:kms:[a-z]{2}[-]{1}[a-z]{3,10}[-]{0,1}[a-z]{0,10}[-]{1}[1-3]{1}:[0-9]{12}[:]{1}key\\\\/\\\", KmsKeyId])\", \"/properties/PerformanceInsightsKMSKeyId\" : \"$join([\\\"arn:(aws)[-]{0,1}[a-z]{0,2}[-]{0,1}[a-z]{0,3}:kms:[a-z]{2}[-]{1}[a-z]{3,10}[-]{0,1}[a-z]{0,10}[-]{1}[1-3]{1}:[0-9]{12}[:]{1}key\\\\/\\\", PerformanceInsightsKMSKeyId])\" }, ```",
163
+ "type": "object"
164
+ },
165
+ "readOnlyProperties": {
166
+ "description": "JSON pointers for properties that can only be read, not updated.\n\nThis is typically used for generated identifiers and such.",
167
+ "items": {
168
+ "type": "string"
169
+ },
170
+ "type": "array"
171
+ },
172
+ "replacementStrategy": {
173
+ "$ref": "#/definitions/ReplacementStrategy"
174
+ },
175
+ "required": {
176
+ "items": {
177
+ "type": "string"
178
+ },
179
+ "type": "array"
180
+ },
181
+ "resourceLink": {
182
+ "$ref": "#/definitions/ResourceLink",
183
+ "description": "How to construct a console link for a resource"
184
+ },
185
+ "sourceUrl": {
186
+ "type": "string"
187
+ },
188
+ "taggable": {
189
+ "default": true,
190
+ "deprecated": "use 'tagging' instead",
191
+ "description": "Whether the resource is taggable",
192
+ "type": "boolean"
193
+ },
194
+ "tagging": {
195
+ "$ref": "#/definitions/ResourceTagging",
196
+ "description": "Extended tagging settings"
197
+ },
198
+ "title": {
199
+ "type": "string"
200
+ },
201
+ "typeName": {
202
+ "type": "string"
203
+ },
204
+ "writeOnlyProperties": {
205
+ "description": "JSON pointers for properties that can only be written, never read.\n\nThis is typically used for secrets.",
206
+ "items": {
207
+ "type": "string"
208
+ },
209
+ "type": "array"
210
+ }
211
+ },
212
+ "required": [
213
+ "description",
214
+ "properties",
215
+ "typeName"
216
+ ],
217
+ "type": "object"
218
+ },
219
+ "Handler": {
220
+ "additionalProperties": false,
221
+ "properties": {
222
+ "permissions": {
223
+ "items": {
224
+ "type": "string"
225
+ },
226
+ "type": "array"
227
+ },
228
+ "timeoutInMinutes": {
229
+ "type": "number"
230
+ }
231
+ },
232
+ "required": [
233
+ "permissions"
234
+ ],
235
+ "type": "object"
236
+ },
237
+ "Handlers": {
238
+ "additionalProperties": false,
239
+ "properties": {
240
+ "create": {
241
+ "$ref": "#/definitions/Handler"
242
+ },
243
+ "delete": {
244
+ "$ref": "#/definitions/Handler"
245
+ },
246
+ "list": {
247
+ "$ref": "#/definitions/Handler"
248
+ },
249
+ "read": {
250
+ "$ref": "#/definitions/Handler"
251
+ },
252
+ "update": {
253
+ "$ref": "#/definitions/Handler"
254
+ }
255
+ },
256
+ "type": "object"
257
+ },
258
+ "ReplacementStrategy": {
259
+ "const": "delete_then_create",
260
+ "type": "string"
261
+ },
262
+ "ResourceLink": {
263
+ "additionalProperties": false,
264
+ "properties": {
265
+ "mappings": {
266
+ "additionalProperties": {
267
+ "type": "string"
268
+ },
269
+ "description": "Example:\n\n`{ MetricName: '/MetricName', 'LogGroupName': '/LogGroupName' }`",
270
+ "type": "object"
271
+ },
272
+ "templateUri": {
273
+ "description": "Example:\n\n``` /cloudwatch/home?region=${awsRegion}#logsV2:log-groups/log-group/${LogGroupName}/edit-metric-filter/${MetricName} ```",
274
+ "type": "string"
275
+ }
276
+ },
277
+ "required": [
278
+ "templateUri"
279
+ ],
280
+ "type": "object"
281
+ },
282
+ "ResourceTagging": {
283
+ "additionalProperties": false,
284
+ "properties": {
285
+ "cloudFormationSystemTags": {
286
+ "default": true,
287
+ "description": "Whether this resource type supports CloudFormation system tags.",
288
+ "type": "boolean"
289
+ },
290
+ "tagOnCreate": {
291
+ "default": true,
292
+ "description": "Whether this resource type supports tagging resources upon creation.",
293
+ "type": "boolean"
294
+ },
295
+ "tagProperty": {
296
+ "default": "/properties/Tags",
297
+ "description": "A reference to where you have defined the Tags property in this resource type schema.",
298
+ "type": "string"
299
+ },
300
+ "tagUpdatable": {
301
+ "default": true,
302
+ "description": "Whether this resource type supports updating tags during resource update operations.",
303
+ "type": "boolean"
304
+ },
305
+ "taggable": {
306
+ "default": true,
307
+ "description": "Whether the resource is taggable",
308
+ "type": "boolean"
309
+ }
310
+ },
311
+ "type": "object"
312
+ },
313
+ "interface-403906428-3451-3797-403906428-0-57631380716174": {
314
+ "additionalProperties": false,
315
+ "description": "Type combinator fields we commonly see at the resource level\n\n(They can be nested)",
316
+ "properties": {
317
+ "allOf": {
318
+ "items": {
319
+ "$ref": "#/definitions/interface-403906428-3451-3797-403906428-0-57631380716174"
320
+ },
321
+ "type": "array"
322
+ },
323
+ "anyOf": {
324
+ "items": {
325
+ "$ref": "#/definitions/interface-403906428-3451-3797-403906428-0-57631380716174"
326
+ },
327
+ "type": "array"
328
+ },
329
+ "oneOf": {
330
+ "items": {
331
+ "$ref": "#/definitions/interface-403906428-3451-3797-403906428-0-57631380716174"
332
+ },
333
+ "type": "array"
334
+ },
335
+ "required": {
336
+ "items": {
337
+ "type": "string"
338
+ },
339
+ "type": "array"
340
+ },
341
+ "type": {
342
+ "type": "string"
343
+ }
344
+ },
345
+ "type": "object"
346
+ },
347
+ "jsonschema.AllOf<Schema>": {
348
+ "additionalProperties": false,
349
+ "properties": {
350
+ "$comment": {
351
+ "type": "string"
352
+ },
353
+ "allOf": {
354
+ "items": {
355
+ "$ref": "#/definitions/jsonschema.Schema"
356
+ },
357
+ "type": "array"
358
+ },
359
+ "description": {
360
+ "type": "string"
361
+ },
362
+ "title": {
363
+ "type": "string"
364
+ }
365
+ },
366
+ "required": [
367
+ "allOf"
368
+ ],
369
+ "type": "object"
370
+ },
371
+ "jsonschema.AnyOf<Schema>": {
372
+ "additionalProperties": false,
373
+ "properties": {
374
+ "$comment": {
375
+ "type": "string"
376
+ },
377
+ "anyOf": {
378
+ "items": {
379
+ "$ref": "#/definitions/jsonschema.Schema"
380
+ },
381
+ "type": "array"
382
+ },
383
+ "description": {
384
+ "type": "string"
385
+ },
386
+ "title": {
387
+ "type": "string"
388
+ }
389
+ },
390
+ "required": [
391
+ "anyOf"
392
+ ],
393
+ "type": "object"
394
+ },
395
+ "jsonschema.AnyType": {
396
+ "const": true,
397
+ "type": "boolean"
398
+ },
399
+ "jsonschema.Boolean": {
400
+ "additionalProperties": false,
401
+ "properties": {
402
+ "$comment": {
403
+ "type": "string"
404
+ },
405
+ "default": {
406
+ "type": "boolean"
407
+ },
408
+ "description": {
409
+ "type": "string"
410
+ },
411
+ "title": {
412
+ "type": "string"
413
+ },
414
+ "type": {
415
+ "const": "boolean",
416
+ "type": "string"
417
+ }
418
+ },
419
+ "required": [
420
+ "type"
421
+ ],
422
+ "type": "object"
423
+ },
424
+ "jsonschema.ConcreteSingletonSchema": {
425
+ "anyOf": [
426
+ {
427
+ "$ref": "#/definitions/jsonschema.Object"
428
+ },
429
+ {
430
+ "$ref": "#/definitions/jsonschema.String"
431
+ },
432
+ {
433
+ "$ref": "#/definitions/jsonschema.SchemaArray"
434
+ },
435
+ {
436
+ "$ref": "#/definitions/jsonschema.Boolean"
437
+ },
438
+ {
439
+ "$ref": "#/definitions/jsonschema.Number"
440
+ },
441
+ {
442
+ "$ref": "#/definitions/jsonschema.Null"
443
+ },
444
+ {
445
+ "$ref": "#/definitions/jsonschema.AnyType"
446
+ }
447
+ ]
448
+ },
449
+ "jsonschema.MapLikeObject": {
450
+ "additionalProperties": false,
451
+ "properties": {
452
+ "$comment": {
453
+ "type": "string"
454
+ },
455
+ "additionalProperties": {
456
+ "anyOf": [
457
+ {
458
+ "const": false,
459
+ "type": "boolean"
460
+ },
461
+ {
462
+ "$ref": "#/definitions/jsonschema.Schema"
463
+ }
464
+ ],
465
+ "default": true,
466
+ "description": "additionalProperties validates all keys that aren't otherwise validated by properties or patternProperties"
467
+ },
468
+ "description": {
469
+ "type": "string"
470
+ },
471
+ "maxProperties": {
472
+ "type": "number"
473
+ },
474
+ "minProperties": {
475
+ "type": "number"
476
+ },
477
+ "patternProperties": {
478
+ "additionalProperties": {
479
+ "$ref": "#/definitions/jsonschema.Schema"
480
+ },
481
+ "type": "object"
482
+ },
483
+ "required": {
484
+ "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.",
485
+ "items": {
486
+ "type": "string"
487
+ },
488
+ "type": "array"
489
+ },
490
+ "title": {
491
+ "type": "string"
492
+ },
493
+ "type": {
494
+ "const": "object",
495
+ "type": "string"
496
+ }
497
+ },
498
+ "required": [
499
+ "type"
500
+ ],
501
+ "type": "object"
502
+ },
503
+ "jsonschema.Null": {
504
+ "additionalProperties": false,
505
+ "properties": {
506
+ "$comment": {
507
+ "type": "string"
508
+ },
509
+ "description": {
510
+ "type": "string"
511
+ },
512
+ "title": {
513
+ "type": "string"
514
+ },
515
+ "type": {
516
+ "const": "null",
517
+ "type": "string"
518
+ }
519
+ },
520
+ "required": [
521
+ "type"
522
+ ],
523
+ "type": "object"
524
+ },
525
+ "jsonschema.Number": {
526
+ "additionalProperties": false,
527
+ "properties": {
528
+ "$comment": {
529
+ "type": "string"
530
+ },
531
+ "default": {
532
+ "type": "number"
533
+ },
534
+ "description": {
535
+ "type": "string"
536
+ },
537
+ "enum": {
538
+ "items": {
539
+ "type": "number"
540
+ },
541
+ "type": "array"
542
+ },
543
+ "format": {
544
+ "enum": [
545
+ "int64",
546
+ "double"
547
+ ],
548
+ "type": "string"
549
+ },
550
+ "maximum": {
551
+ "type": "number"
552
+ },
553
+ "minimum": {
554
+ "type": "number"
555
+ },
556
+ "multipleOf": {
557
+ "type": "number"
558
+ },
559
+ "title": {
560
+ "type": "string"
561
+ },
562
+ "type": {
563
+ "enum": [
564
+ "number",
565
+ "integer"
566
+ ],
567
+ "type": "string"
568
+ }
569
+ },
570
+ "required": [
571
+ "type"
572
+ ],
573
+ "type": "object"
574
+ },
575
+ "jsonschema.Object": {
576
+ "anyOf": [
577
+ {
578
+ "$ref": "#/definitions/jsonschema.MapLikeObject"
579
+ },
580
+ {
581
+ "$ref": "#/definitions/jsonschema.RecordLikeObject"
582
+ }
583
+ ]
584
+ },
585
+ "jsonschema.ObjectProperties": {
586
+ "additionalProperties": {
587
+ "$ref": "#/definitions/jsonschema.Schema"
588
+ },
589
+ "type": "object"
590
+ },
591
+ "jsonschema.OneOf<Schema>": {
592
+ "additionalProperties": false,
593
+ "properties": {
594
+ "$comment": {
595
+ "type": "string"
596
+ },
597
+ "description": {
598
+ "type": "string"
599
+ },
600
+ "oneOf": {
601
+ "items": {
602
+ "$ref": "#/definitions/jsonschema.Schema"
603
+ },
604
+ "type": "array"
605
+ },
606
+ "title": {
607
+ "type": "string"
608
+ }
609
+ },
610
+ "required": [
611
+ "oneOf"
612
+ ],
613
+ "type": "object"
614
+ },
615
+ "jsonschema.RecordLikeObject": {
616
+ "additionalProperties": false,
617
+ "properties": {
618
+ "$comment": {
619
+ "type": "string"
620
+ },
621
+ "additionalProperties": {
622
+ "const": false,
623
+ "description": "FIXME: should be required but some service teams have omitted it.",
624
+ "type": "boolean"
625
+ },
626
+ "description": {
627
+ "type": "string"
628
+ },
629
+ "maxProperties": {
630
+ "type": "number"
631
+ },
632
+ "minProperties": {
633
+ "description": "FIXME: these are weird but oh hey?",
634
+ "type": "number"
635
+ },
636
+ "properties": {
637
+ "$ref": "#/definitions/jsonschema.ObjectProperties"
638
+ },
639
+ "required": {
640
+ "items": {
641
+ "type": "string"
642
+ },
643
+ "type": "array"
644
+ },
645
+ "title": {
646
+ "type": "string"
647
+ },
648
+ "type": {
649
+ "const": "object",
650
+ "type": "string"
651
+ }
652
+ },
653
+ "required": [
654
+ "type",
655
+ "properties"
656
+ ],
657
+ "type": "object"
658
+ },
659
+ "jsonschema.Reference": {
660
+ "additionalProperties": false,
661
+ "properties": {
662
+ "$comment": {
663
+ "type": "string"
664
+ },
665
+ "$ref": {
666
+ "type": "string"
667
+ },
668
+ "description": {
669
+ "type": "string"
670
+ },
671
+ "title": {
672
+ "type": "string"
673
+ }
674
+ },
675
+ "required": [
676
+ "$ref"
677
+ ],
678
+ "type": "object"
679
+ },
680
+ "jsonschema.Schema": {
681
+ "anyOf": [
682
+ {
683
+ "$ref": "#/definitions/jsonschema.SingletonSchema"
684
+ },
685
+ {
686
+ "$ref": "#/definitions/jsonschema.OneOf%3CSchema%3E"
687
+ },
688
+ {
689
+ "$ref": "#/definitions/jsonschema.AnyOf%3CSchema%3E"
690
+ },
691
+ {
692
+ "$ref": "#/definitions/jsonschema.AllOf%3CSchema%3E"
693
+ }
694
+ ]
695
+ },
696
+ "jsonschema.SchemaArray": {
697
+ "additionalProperties": false,
698
+ "properties": {
699
+ "$comment": {
700
+ "type": "string"
701
+ },
702
+ "arrayType": {
703
+ "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.",
704
+ "enum": [
705
+ "AttributeList",
706
+ "Standard"
707
+ ],
708
+ "type": "string"
709
+ },
710
+ "default": {
711
+ "items": {},
712
+ "type": "array"
713
+ },
714
+ "description": {
715
+ "type": "string"
716
+ },
717
+ "examples": {
718
+ "items": {},
719
+ "type": "array"
720
+ },
721
+ "insertionOrder": {
722
+ "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.",
723
+ "type": "boolean"
724
+ },
725
+ "items": {
726
+ "$ref": "#/definitions/jsonschema.Schema"
727
+ },
728
+ "maxItems": {
729
+ "type": "number"
730
+ },
731
+ "minItems": {
732
+ "type": "number"
733
+ },
734
+ "title": {
735
+ "type": "string"
736
+ },
737
+ "type": {
738
+ "const": "array",
739
+ "type": "string"
740
+ },
741
+ "uniqueItems": {
742
+ "type": "boolean"
743
+ }
744
+ },
745
+ "required": [
746
+ "type"
747
+ ],
748
+ "type": "object"
749
+ },
750
+ "jsonschema.SingletonSchema": {
751
+ "anyOf": [
752
+ {
753
+ "$ref": "#/definitions/jsonschema.Reference"
754
+ },
755
+ {
756
+ "$ref": "#/definitions/jsonschema.ConcreteSingletonSchema"
757
+ }
758
+ ]
759
+ },
760
+ "jsonschema.String": {
761
+ "additionalProperties": false,
762
+ "properties": {
763
+ "$comment": {
764
+ "type": "string"
765
+ },
766
+ "const": {
767
+ "type": "string"
768
+ },
769
+ "default": {
770
+ "type": "string"
771
+ },
772
+ "description": {
773
+ "type": "string"
774
+ },
775
+ "enum": {
776
+ "items": {
777
+ "type": "string"
778
+ },
779
+ "type": "array"
780
+ },
781
+ "examples": {
782
+ "items": {
783
+ "type": "string"
784
+ },
785
+ "type": "array"
786
+ },
787
+ "format": {
788
+ "enum": [
789
+ "date-time",
790
+ "uri",
791
+ "timestamp"
792
+ ],
793
+ "type": "string"
794
+ },
795
+ "maxLength": {
796
+ "type": "number"
797
+ },
798
+ "minLength": {
799
+ "type": "number"
800
+ },
801
+ "pattern": {
802
+ "type": "string"
803
+ },
804
+ "title": {
805
+ "type": "string"
806
+ },
807
+ "type": {
808
+ "const": "string",
809
+ "type": "string"
810
+ }
811
+ },
812
+ "required": [
813
+ "type"
814
+ ],
815
+ "type": "object"
816
+ }
817
+ }
818
+ }