@toolproof-core/schema 1.0.3 → 1.0.5

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 (57) hide show
  1. package/dist/generated/normalized/Genesis.json +16 -265
  2. package/dist/generated/resources/Genesis.json +18 -305
  3. package/dist/generated/schemas/Genesis.json +14 -152
  4. package/dist/generated/schemas/standalone/Goal.json +0 -33
  5. package/dist/generated/schemas/standalone/Job.json +0 -42
  6. package/dist/generated/schemas/standalone/RawStrategy.json +14 -52
  7. package/dist/generated/schemas/standalone/ResourceType.json +0 -34
  8. package/dist/generated/schemas/standalone/RunnableStrategy.json +14 -57
  9. package/dist/generated/schemas/standalone/StrategyRun.json +14 -71
  10. package/dist/generated/types/standalone/Resource_Genesis.d.ts +1 -1
  11. package/dist/generated/types/standalone/Resource_Job.d.ts +1 -1
  12. package/dist/generated/types/standalone/Resource_RawStrategy.d.ts +1 -1
  13. package/dist/generated/types/standalone/Resource_ResourceType.d.ts +1 -1
  14. package/dist/generated/types/standalone/Resource_RunnableStrategy.d.ts +1 -1
  15. package/dist/generated/types/types.d.ts +119 -1126
  16. package/dist/index.d.ts +1 -4
  17. package/dist/index.js +0 -2
  18. package/dist/scripts/_lib/config.d.ts +6 -6
  19. package/dist/scripts/_lib/config.js +10 -12
  20. package/dist/scripts/extractSchemasFromResourceTypeShells.js +109 -103
  21. package/dist/scripts/generateDependencies.js +15 -14
  22. package/dist/scripts/generateSchemaShims.js +77 -85
  23. package/dist/scripts/generateStandaloneSchema.js +47 -37
  24. package/dist/scripts/generateStandaloneType.js +85 -79
  25. package/dist/scripts/generateTypes.js +350 -470
  26. package/dist/scripts/normalizeAnchorsToPointers.d.ts +1 -1
  27. package/dist/scripts/normalizeAnchorsToPointers.js +61 -33
  28. package/dist/scripts/wrapResourceTypesWithResourceShells.js +14 -16
  29. package/package.json +7 -8
  30. package/src/Genesis.json +1837 -1999
  31. package/src/generated/{dependencyMap.json → dependencies/dependencyMap.json} +9 -19
  32. package/src/generated/normalized/Genesis.json +16 -265
  33. package/src/generated/resources/Genesis.json +18 -305
  34. package/src/generated/schemas/Genesis.json +14 -152
  35. package/src/generated/schemas/standalone/Goal.json +0 -33
  36. package/src/generated/schemas/standalone/Job.json +0 -42
  37. package/src/generated/schemas/standalone/RawStrategy.json +14 -52
  38. package/src/generated/schemas/standalone/ResourceType.json +0 -34
  39. package/src/generated/schemas/standalone/RunnableStrategy.json +14 -57
  40. package/src/generated/schemas/standalone/StrategyRun.json +14 -71
  41. package/src/generated/types/standalone/Resource_Genesis.d.ts +1 -1
  42. package/src/generated/types/standalone/Resource_Job.d.ts +1 -1
  43. package/src/generated/types/standalone/Resource_RawStrategy.d.ts +1 -1
  44. package/src/generated/types/standalone/Resource_ResourceType.d.ts +1 -1
  45. package/src/generated/types/standalone/Resource_RunnableStrategy.d.ts +1 -1
  46. package/src/generated/types/types.d.ts +119 -1126
  47. package/src/index.ts +66 -93
  48. package/src/scripts/_lib/config.ts +203 -205
  49. package/src/scripts/extractSchemasFromResourceTypeShells.ts +261 -218
  50. package/src/scripts/generateDependencies.ts +121 -120
  51. package/src/scripts/generateSchemaShims.ts +127 -135
  52. package/src/scripts/generateStandaloneSchema.ts +185 -175
  53. package/src/scripts/generateStandaloneType.ts +127 -119
  54. package/src/scripts/generateTypes.ts +532 -615
  55. package/src/scripts/normalizeAnchorsToPointers.ts +141 -123
  56. package/src/scripts/wrapResourceTypesWithResourceShells.ts +82 -84
  57. package/dist/generated/dependencyMap.json +0 -292
@@ -1,5 +1,4 @@
1
1
  {
2
- "$anchor": "Goal",
3
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
3
  "type": "object",
5
4
  "required": [
@@ -38,49 +37,17 @@
38
37
  "minimum": 1
39
38
  }
40
39
  },
41
- "allOf": [
42
- {
43
- "$ref": "#/$defs/DomainFacet"
44
- }
45
- ],
46
40
  "unevaluatedProperties": false,
47
41
  "$defs": {
48
42
  "GoalIdentity": {
49
- "$anchor": "GoalIdentity",
50
43
  "$schema": "https://json-schema.org/draft/2020-12/schema",
51
44
  "type": "string",
52
45
  "pattern": "^GOAL-.+$"
53
46
  },
54
47
  "JobIdentity": {
55
- "$anchor": "JobIdentity",
56
48
  "$schema": "https://json-schema.org/draft/2020-12/schema",
57
49
  "type": "string",
58
50
  "pattern": "^JOB-.+$"
59
- },
60
- "DomainFacet": {
61
- "$anchor": "DomainFacet",
62
- "$schema": "https://json-schema.org/draft/2020-12/schema",
63
- "type": "object",
64
- "required": [
65
- "domain"
66
- ],
67
- "properties": {
68
- "domain": {
69
- "$ref": "#/$defs/Domain"
70
- }
71
- }
72
- },
73
- "Domain": {
74
- "$anchor": "Domain",
75
- "$schema": "https://json-schema.org/draft/2020-12/schema",
76
- "type": "string",
77
- "enum": [
78
- "internal",
79
- "numerical",
80
- "biological",
81
- "logical",
82
- "augmental"
83
- ]
84
51
  }
85
52
  }
86
53
  }
@@ -1,5 +1,4 @@
1
1
  {
2
- "$anchor": "Job",
3
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
3
  "type": "object",
5
4
  "required": [
@@ -18,9 +17,6 @@
18
17
  {
19
18
  "$ref": "#/$defs/DocumentationFacet"
20
19
  },
21
- {
22
- "$ref": "#/$defs/DomainFacet"
23
- },
24
20
  {
25
21
  "$ref": "#/$defs/RolesFacet"
26
22
  }
@@ -28,19 +24,16 @@
28
24
  "unevaluatedProperties": false,
29
25
  "$defs": {
30
26
  "JobIdentity": {
31
- "$anchor": "JobIdentity",
32
27
  "$schema": "https://json-schema.org/draft/2020-12/schema",
33
28
  "type": "string",
34
29
  "pattern": "^JOB-.+$"
35
30
  },
36
31
  "Uri": {
37
- "$anchor": "Uri",
38
32
  "$schema": "https://json-schema.org/draft/2020-12/schema",
39
33
  "type": "string",
40
34
  "format": "uri"
41
35
  },
42
36
  "DocumentationFacet": {
43
- "$anchor": "DocumentationFacet",
44
37
  "$schema": "https://json-schema.org/draft/2020-12/schema",
45
38
  "type": "object",
46
39
  "allOf": [
@@ -52,21 +45,7 @@
52
45
  }
53
46
  ]
54
47
  },
55
- "DomainFacet": {
56
- "$anchor": "DomainFacet",
57
- "$schema": "https://json-schema.org/draft/2020-12/schema",
58
- "type": "object",
59
- "required": [
60
- "domain"
61
- ],
62
- "properties": {
63
- "domain": {
64
- "$ref": "#/$defs/Domain"
65
- }
66
- }
67
- },
68
48
  "RolesFacet": {
69
- "$anchor": "RolesFacet",
70
49
  "$schema": "https://json-schema.org/draft/2020-12/schema",
71
50
  "type": "object",
72
51
  "required": [
@@ -79,7 +58,6 @@
79
58
  }
80
59
  },
81
60
  "NameFacet": {
82
- "$anchor": "NameFacet",
83
61
  "$schema": "https://json-schema.org/draft/2020-12/schema",
84
62
  "type": "object",
85
63
  "required": [
@@ -92,7 +70,6 @@
92
70
  }
93
71
  },
94
72
  "DescriptionFacet": {
95
- "$anchor": "DescriptionFacet",
96
73
  "$schema": "https://json-schema.org/draft/2020-12/schema",
97
74
  "type": "object",
98
75
  "required": [
@@ -104,20 +81,7 @@
104
81
  }
105
82
  }
106
83
  },
107
- "Domain": {
108
- "$anchor": "Domain",
109
- "$schema": "https://json-schema.org/draft/2020-12/schema",
110
- "type": "string",
111
- "enum": [
112
- "internal",
113
- "numerical",
114
- "biological",
115
- "logical",
116
- "augmental"
117
- ]
118
- },
119
84
  "Roles": {
120
- "$anchor": "Roles",
121
85
  "$schema": "https://json-schema.org/draft/2020-12/schema",
122
86
  "type": "object",
123
87
  "required": [
@@ -172,7 +136,6 @@
172
136
  "unevaluatedProperties": false
173
137
  },
174
138
  "Name": {
175
- "$anchor": "Name",
176
139
  "$schema": "https://json-schema.org/draft/2020-12/schema",
177
140
  "type": "string",
178
141
  "minLength": 1,
@@ -181,7 +144,6 @@
181
144
  "semanticValidation": "Ajv custom keyword to verify name."
182
145
  },
183
146
  "Description": {
184
- "$anchor": "Description",
185
147
  "$schema": "https://json-schema.org/draft/2020-12/schema",
186
148
  "type": "string",
187
149
  "minLength": 1,
@@ -189,7 +151,6 @@
189
151
  "semanticValidation": "Ajv custom keyword to verify description."
190
152
  },
191
153
  "RoleMap": {
192
- "$anchor": "RoleMap",
193
154
  "$schema": "https://json-schema.org/draft/2020-12/schema",
194
155
  "type": "object",
195
156
  "propertyNames": {
@@ -200,7 +161,6 @@
200
161
  }
201
162
  },
202
163
  "ResourceRoleValue": {
203
- "$anchor": "ResourceRoleValue",
204
164
  "$schema": "https://json-schema.org/draft/2020-12/schema",
205
165
  "type": "object",
206
166
  "allOf": [
@@ -221,13 +181,11 @@
221
181
  ]
222
182
  },
223
183
  "ResourceRoleIdentity": {
224
- "$anchor": "ResourceRoleIdentity",
225
184
  "$schema": "https://json-schema.org/draft/2020-12/schema",
226
185
  "type": "string",
227
186
  "pattern": "^ROLE-.+$"
228
187
  },
229
188
  "ResourceTypeIdentity": {
230
- "$anchor": "ResourceTypeIdentity",
231
189
  "$schema": "https://json-schema.org/draft/2020-12/schema",
232
190
  "type": "string",
233
191
  "pattern": "^TYPE-.+$"
@@ -1,5 +1,4 @@
1
1
  {
2
- "$anchor": "RawStrategy",
3
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
3
  "type": "object",
5
4
  "allOf": [
@@ -13,7 +12,6 @@
13
12
  "unevaluatedProperties": false,
14
13
  "$defs": {
15
14
  "StepsFacet": {
16
- "$anchor": "StepsFacet",
17
15
  "$schema": "https://json-schema.org/draft/2020-12/schema",
18
16
  "type": "object",
19
17
  "required": [
@@ -26,7 +24,6 @@
26
24
  }
27
25
  },
28
26
  "StrategyStateFacet": {
29
- "$anchor": "StrategyStateFacet",
30
27
  "$schema": "https://json-schema.org/draft/2020-12/schema",
31
28
  "type": "object",
32
29
  "required": [
@@ -39,7 +36,6 @@
39
36
  }
40
37
  },
41
38
  "StepArray": {
42
- "$anchor": "StepArray",
43
39
  "$schema": "https://json-schema.org/draft/2020-12/schema",
44
40
  "type": "array",
45
41
  "items": {
@@ -48,7 +44,6 @@
48
44
  "uniqueItems": true
49
45
  },
50
46
  "StrategyState": {
51
- "$anchor": "StrategyState",
52
47
  "$schema": "https://json-schema.org/draft/2020-12/schema",
53
48
  "type": "object",
54
49
  "propertyNames": {
@@ -59,7 +54,6 @@
59
54
  }
60
55
  },
61
56
  "Step": {
62
- "$anchor": "Step",
63
57
  "$schema": "https://json-schema.org/draft/2020-12/schema",
64
58
  "type": "object",
65
59
  "oneOf": [
@@ -79,13 +73,11 @@
79
73
  "unevaluatedProperties": false
80
74
  },
81
75
  "JobStepIdentity": {
82
- "$anchor": "JobStepIdentity",
83
76
  "$schema": "https://json-schema.org/draft/2020-12/schema",
84
77
  "type": "string",
85
78
  "pattern": "^JOB_STEP-.+$"
86
79
  },
87
80
  "JobStepSocket": {
88
- "$anchor": "JobStepSocket",
89
81
  "$schema": "https://json-schema.org/draft/2020-12/schema",
90
82
  "type": "object",
91
83
  "propertyNames": {
@@ -96,11 +88,11 @@
96
88
  }
97
89
  },
98
90
  "JobStep": {
99
- "$anchor": "JobStep",
100
91
  "$schema": "https://json-schema.org/draft/2020-12/schema",
101
92
  "type": "object",
102
93
  "required": [
103
94
  "identity",
95
+ "stepKind",
104
96
  "jobHandle"
105
97
  ],
106
98
  "properties": {
@@ -125,11 +117,11 @@
125
117
  ]
126
118
  },
127
119
  "BranchStep": {
128
- "$anchor": "BranchStep",
129
120
  "$schema": "https://json-schema.org/draft/2020-12/schema",
130
121
  "type": "object",
131
122
  "required": [
132
123
  "identity",
124
+ "stepKind",
133
125
  "cases"
134
126
  ],
135
127
  "properties": {
@@ -155,11 +147,11 @@
155
147
  ]
156
148
  },
157
149
  "WhileStep": {
158
- "$anchor": "WhileStep",
159
150
  "$schema": "https://json-schema.org/draft/2020-12/schema",
160
151
  "type": "object",
161
152
  "required": [
162
153
  "identity",
154
+ "stepKind",
163
155
  "case"
164
156
  ],
165
157
  "properties": {
@@ -180,11 +172,11 @@
180
172
  ]
181
173
  },
182
174
  "ForStep": {
183
- "$anchor": "ForStep",
184
175
  "$schema": "https://json-schema.org/draft/2020-12/schema",
185
176
  "type": "object",
186
177
  "required": [
187
178
  "identity",
179
+ "stepKind",
188
180
  "case"
189
181
  ],
190
182
  "properties": {
@@ -205,13 +197,11 @@
205
197
  ]
206
198
  },
207
199
  "ResourceRoleIdentity": {
208
- "$anchor": "ResourceRoleIdentity",
209
200
  "$schema": "https://json-schema.org/draft/2020-12/schema",
210
201
  "type": "string",
211
202
  "pattern": "^ROLE-.+$"
212
203
  },
213
204
  "Resource": {
214
- "$anchor": "Resource",
215
205
  "$schema": "https://json-schema.org/draft/2020-12/schema",
216
206
  "type": "object",
217
207
  "oneOf": [
@@ -231,13 +221,11 @@
231
221
  "unevaluatedProperties": false
232
222
  },
233
223
  "JobIdentity": {
234
- "$anchor": "JobIdentity",
235
224
  "$schema": "https://json-schema.org/draft/2020-12/schema",
236
225
  "type": "string",
237
226
  "pattern": "^JOB-.+$"
238
227
  },
239
228
  "StepKindFacet": {
240
- "$anchor": "StepKindFacet",
241
229
  "$schema": "https://json-schema.org/draft/2020-12/schema",
242
230
  "type": "object",
243
231
  "required": [
@@ -250,7 +238,6 @@
250
238
  }
251
239
  },
252
240
  "RoleBindingsFacet": {
253
- "$anchor": "RoleBindingsFacet",
254
241
  "$schema": "https://json-schema.org/draft/2020-12/schema",
255
242
  "type": "object",
256
243
  "required": [
@@ -263,13 +250,11 @@
263
250
  }
264
251
  },
265
252
  "BranchStepIdentity": {
266
- "$anchor": "BranchStepIdentity",
267
253
  "$schema": "https://json-schema.org/draft/2020-12/schema",
268
254
  "type": "string",
269
255
  "pattern": "^BRANCH_STEP-.+$"
270
256
  },
271
257
  "Conditional": {
272
- "$anchor": "Conditional",
273
258
  "$schema": "https://json-schema.org/draft/2020-12/schema",
274
259
  "type": "object",
275
260
  "required": [
@@ -287,40 +272,34 @@
287
272
  "unevaluatedProperties": false
288
273
  },
289
274
  "WhileStepIdentity": {
290
- "$anchor": "WhileStepIdentity",
291
275
  "$schema": "https://json-schema.org/draft/2020-12/schema",
292
276
  "type": "string",
293
277
  "pattern": "^WHILE_STEP-.+$"
294
278
  },
295
279
  "ForStepIdentity": {
296
- "$anchor": "ForStepIdentity",
297
280
  "$schema": "https://json-schema.org/draft/2020-12/schema",
298
281
  "type": "string",
299
282
  "pattern": "^FOR_STEP-.+$"
300
283
  },
301
284
  "ResourceMissing": {
302
- "$anchor": "ResourceMissing",
303
285
  "$schema": "https://json-schema.org/draft/2020-12/schema",
304
286
  "type": "object",
305
287
  "$ref": "#/$defs/ShellMissing",
306
288
  "unevaluatedProperties": false
307
289
  },
308
290
  "ResourceInputPotential": {
309
- "$anchor": "ResourceInputPotential",
310
291
  "$schema": "https://json-schema.org/draft/2020-12/schema",
311
292
  "type": "object",
312
293
  "$ref": "#/$defs/ShellInputPotential",
313
294
  "unevaluatedProperties": false
314
295
  },
315
296
  "ResourceOutputPotential": {
316
- "$anchor": "ResourceOutputPotential",
317
297
  "$schema": "https://json-schema.org/draft/2020-12/schema",
318
298
  "type": "object",
319
299
  "$ref": "#/$defs/ShellOutputPotential",
320
300
  "unevaluatedProperties": false
321
301
  },
322
302
  "ResourceMaterialized": {
323
- "$anchor": "ResourceMaterialized",
324
303
  "$schema": "https://json-schema.org/draft/2020-12/schema",
325
304
  "type": "object",
326
305
  "allOf": [
@@ -335,7 +314,6 @@
335
314
  "unevaluatedProperties": false
336
315
  },
337
316
  "StepKind": {
338
- "$anchor": "StepKind",
339
317
  "$schema": "https://json-schema.org/draft/2020-12/schema",
340
318
  "type": "string",
341
319
  "enum": [
@@ -346,7 +324,6 @@
346
324
  ]
347
325
  },
348
326
  "RoleBindings": {
349
- "$anchor": "RoleBindings",
350
327
  "$schema": "https://json-schema.org/draft/2020-12/schema",
351
328
  "type": "object",
352
329
  "required": [
@@ -363,7 +340,6 @@
363
340
  }
364
341
  },
365
342
  "ShellMissing": {
366
- "$anchor": "ShellMissing",
367
343
  "$schema": "https://json-schema.org/draft/2020-12/schema",
368
344
  "type": "object",
369
345
  "properties": {
@@ -373,7 +349,7 @@
373
349
  },
374
350
  "allOf": [
375
351
  {
376
- "$ref": "#/$defs/ResourceBase"
352
+ "$ref": "#/$defs/ResourceShellBase"
377
353
  },
378
354
  {
379
355
  "$ref": "#/$defs/ResourceKindFacet"
@@ -382,7 +358,6 @@
382
358
  "unevaluatedProperties": false
383
359
  },
384
360
  "ShellInputPotential": {
385
- "$anchor": "ShellInputPotential",
386
361
  "$schema": "https://json-schema.org/draft/2020-12/schema",
387
362
  "type": "object",
388
363
  "properties": {
@@ -392,7 +367,7 @@
392
367
  },
393
368
  "allOf": [
394
369
  {
395
- "$ref": "#/$defs/ResourceBase"
370
+ "$ref": "#/$defs/ResourceShellBase"
396
371
  },
397
372
  {
398
373
  "$ref": "#/$defs/CreationContextFacet"
@@ -404,7 +379,6 @@
404
379
  "unevaluatedProperties": false
405
380
  },
406
381
  "ShellOutputPotential": {
407
- "$anchor": "ShellOutputPotential",
408
382
  "$schema": "https://json-schema.org/draft/2020-12/schema",
409
383
  "type": "object",
410
384
  "properties": {
@@ -414,7 +388,7 @@
414
388
  },
415
389
  "allOf": [
416
390
  {
417
- "$ref": "#/$defs/ResourceBase"
391
+ "$ref": "#/$defs/ResourceShellBase"
418
392
  },
419
393
  {
420
394
  "$ref": "#/$defs/CreationContextFacet"
@@ -426,7 +400,6 @@
426
400
  "unevaluatedProperties": false
427
401
  },
428
402
  "ShellMaterializedBase": {
429
- "$anchor": "ShellMaterializedBase",
430
403
  "$schema": "https://json-schema.org/draft/2020-12/schema",
431
404
  "type": "object",
432
405
  "required": [
@@ -442,7 +415,7 @@
442
415
  },
443
416
  "allOf": [
444
417
  {
445
- "$ref": "#/$defs/ResourceBase"
418
+ "$ref": "#/$defs/ResourceShellBase"
446
419
  },
447
420
  {
448
421
  "$ref": "#/$defs/CreationContextFacet"
@@ -459,7 +432,6 @@
459
432
  ]
460
433
  },
461
434
  "NucleusFacet": {
462
- "$anchor": "NucleusFacet",
463
435
  "$schema": "https://json-schema.org/draft/2020-12/schema",
464
436
  "type": "object",
465
437
  "required": [
@@ -472,20 +444,19 @@
472
444
  }
473
445
  },
474
446
  "RoleBindingArray": {
475
- "$anchor": "RoleBindingArray",
476
447
  "$schema": "https://json-schema.org/draft/2020-12/schema",
477
448
  "type": "array",
478
449
  "items": {
479
450
  "$ref": "#/$defs/ResourceRoleIdentity"
480
451
  }
481
452
  },
482
- "ResourceBase": {
483
- "$anchor": "ResourceBase",
453
+ "ResourceShellBase": {
484
454
  "$schema": "https://json-schema.org/draft/2020-12/schema",
485
455
  "type": "object",
486
456
  "required": [
487
457
  "identity",
488
- "resourceTypeHandle"
458
+ "resourceTypeHandle",
459
+ "resourceKind"
489
460
  ],
490
461
  "properties": {
491
462
  "identity": {
@@ -493,11 +464,13 @@
493
464
  },
494
465
  "resourceTypeHandle": {
495
466
  "$ref": "#/$defs/ResourceTypeIdentity"
467
+ },
468
+ "resourceKind": {
469
+ "$ref": "#/$defs/ResourceKind"
496
470
  }
497
471
  }
498
472
  },
499
473
  "ResourceKindFacet": {
500
- "$anchor": "ResourceKindFacet",
501
474
  "$schema": "https://json-schema.org/draft/2020-12/schema",
502
475
  "type": "object",
503
476
  "required": [
@@ -510,7 +483,6 @@
510
483
  }
511
484
  },
512
485
  "CreationContextFacet": {
513
- "$anchor": "CreationContextFacet",
514
486
  "$schema": "https://json-schema.org/draft/2020-12/schema",
515
487
  "type": "object",
516
488
  "required": [
@@ -523,7 +495,6 @@
523
495
  }
524
496
  },
525
497
  "TimestampFacet": {
526
- "$anchor": "TimestampFacet",
527
498
  "$schema": "https://json-schema.org/draft/2020-12/schema",
528
499
  "type": "object",
529
500
  "required": [
@@ -536,7 +507,6 @@
536
507
  }
537
508
  },
538
509
  "PathFacet": {
539
- "$anchor": "PathFacet",
540
510
  "$schema": "https://json-schema.org/draft/2020-12/schema",
541
511
  "type": "object",
542
512
  "required": [
@@ -549,7 +519,6 @@
549
519
  }
550
520
  },
551
521
  "Nucleus": {
552
- "$anchor": "Nucleus",
553
522
  "$schema": "https://json-schema.org/draft/2020-12/schema",
554
523
  "type": "object",
555
524
  "additionalProperties": {
@@ -557,19 +526,16 @@
557
526
  }
558
527
  },
559
528
  "ResourceIdentity": {
560
- "$anchor": "ResourceIdentity",
561
529
  "$schema": "https://json-schema.org/draft/2020-12/schema",
562
530
  "type": "string",
563
531
  "pattern": "^RESOURCE-.+$"
564
532
  },
565
533
  "ResourceTypeIdentity": {
566
- "$anchor": "ResourceTypeIdentity",
567
534
  "$schema": "https://json-schema.org/draft/2020-12/schema",
568
535
  "type": "string",
569
536
  "pattern": "^TYPE-.+$"
570
537
  },
571
538
  "ResourceKind": {
572
- "$anchor": "ResourceKind",
573
539
  "$schema": "https://json-schema.org/draft/2020-12/schema",
574
540
  "type": "string",
575
541
  "enum": [
@@ -580,7 +546,6 @@
580
546
  ]
581
547
  },
582
548
  "CreationContext": {
583
- "$anchor": "CreationContext",
584
549
  "$schema": "https://json-schema.org/draft/2020-12/schema",
585
550
  "type": "object",
586
551
  "required": [
@@ -597,19 +562,16 @@
597
562
  }
598
563
  },
599
564
  "Timestamp": {
600
- "$anchor": "Timestamp",
601
565
  "$schema": "https://json-schema.org/draft/2020-12/schema",
602
566
  "type": "string",
603
567
  "format": "date-time"
604
568
  },
605
569
  "Path": {
606
- "$anchor": "Path",
607
570
  "$schema": "https://json-schema.org/draft/2020-12/schema",
608
571
  "type": "string",
609
572
  "format": "uri-reference"
610
573
  },
611
574
  "JsonData": {
612
- "$anchor": "JsonData",
613
575
  "$schema": "https://json-schema.org/draft/2020-12/schema",
614
576
  "oneOf": [
615
577
  {
@@ -1,5 +1,4 @@
1
1
  {
2
- "$anchor": "ResourceType",
3
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
3
  "type": "object",
5
4
  "required": [
@@ -39,26 +38,20 @@
39
38
  "allOf": [
40
39
  {
41
40
  "$ref": "#/$defs/DocumentationFacet"
42
- },
43
- {
44
- "$ref": "#/$defs/ResourceTypeImplementationKindFacet"
45
41
  }
46
42
  ],
47
43
  "$defs": {
48
44
  "ResourceTypeIdentity": {
49
- "$anchor": "ResourceTypeIdentity",
50
45
  "$schema": "https://json-schema.org/draft/2020-12/schema",
51
46
  "type": "string",
52
47
  "pattern": "^TYPE-.+$"
53
48
  },
54
49
  "Uri": {
55
- "$anchor": "Uri",
56
50
  "$schema": "https://json-schema.org/draft/2020-12/schema",
57
51
  "type": "string",
58
52
  "format": "uri"
59
53
  },
60
54
  "DocumentationFacet": {
61
- "$anchor": "DocumentationFacet",
62
55
  "$schema": "https://json-schema.org/draft/2020-12/schema",
63
56
  "type": "object",
64
57
  "allOf": [
@@ -70,21 +63,7 @@
70
63
  }
71
64
  ]
72
65
  },
73
- "ResourceTypeImplementationKindFacet": {
74
- "$anchor": "ResourceTypeImplementationKindFacet",
75
- "$schema": "https://json-schema.org/draft/2020-12/schema",
76
- "type": "object",
77
- "required": [
78
- "resourceTypeImplementationKind"
79
- ],
80
- "properties": {
81
- "resourceTypeImplementationKind": {
82
- "$ref": "#/$defs/ResourceTypeImplementationKind"
83
- }
84
- }
85
- },
86
66
  "NameFacet": {
87
- "$anchor": "NameFacet",
88
67
  "$schema": "https://json-schema.org/draft/2020-12/schema",
89
68
  "type": "object",
90
69
  "required": [
@@ -97,7 +76,6 @@
97
76
  }
98
77
  },
99
78
  "DescriptionFacet": {
100
- "$anchor": "DescriptionFacet",
101
79
  "$schema": "https://json-schema.org/draft/2020-12/schema",
102
80
  "type": "object",
103
81
  "required": [
@@ -109,18 +87,7 @@
109
87
  }
110
88
  }
111
89
  },
112
- "ResourceTypeImplementationKind": {
113
- "$anchor": "ResourceTypeImplementationKind",
114
- "$schema": "https://json-schema.org/draft/2020-12/schema",
115
- "type": "string",
116
- "enum": [
117
- "internal-without-identity",
118
- "internal-with-identity",
119
- "external"
120
- ]
121
- },
122
90
  "Name": {
123
- "$anchor": "Name",
124
91
  "$schema": "https://json-schema.org/draft/2020-12/schema",
125
92
  "type": "string",
126
93
  "minLength": 1,
@@ -129,7 +96,6 @@
129
96
  "semanticValidation": "Ajv custom keyword to verify name."
130
97
  },
131
98
  "Description": {
132
- "$anchor": "Description",
133
99
  "$schema": "https://json-schema.org/draft/2020-12/schema",
134
100
  "type": "string",
135
101
  "minLength": 1,