@toolproof-core/schema 1.0.4 → 1.0.6

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 (74) hide show
  1. package/dist/generated/constants/constants.d.ts +60 -0
  2. package/dist/generated/constants/constants.js +60 -0
  3. package/dist/generated/normalized/Genesis.json +0 -261
  4. package/dist/generated/resources/Genesis.json +0 -299
  5. package/dist/generated/schemas/Genesis.json +0 -150
  6. package/dist/generated/schemas/standalone/Goal.json +0 -33
  7. package/dist/generated/schemas/standalone/Job.json +0 -42
  8. package/dist/generated/schemas/standalone/RawStrategy.json +0 -46
  9. package/dist/generated/schemas/standalone/ResourceType.json +0 -34
  10. package/dist/generated/schemas/standalone/RunnableStrategy.json +0 -51
  11. package/dist/generated/schemas/standalone/StrategyRun.json +0 -65
  12. package/dist/generated/{typesTS → types}/standalone/Resource_Genesis.d.ts +1 -1
  13. package/{src/generated/typesTS → dist/generated/types}/standalone/Resource_Job.d.ts +1 -1
  14. package/{src/generated/typesTS → dist/generated/types}/standalone/Resource_RawStrategy.d.ts +1 -1
  15. package/{src/generated/typesTS → dist/generated/types}/standalone/Resource_ResourceType.d.ts +1 -1
  16. package/dist/generated/{typesTS → types}/standalone/Resource_RunnableStrategy.d.ts +1 -1
  17. package/dist/generated/{typesTS/typesTS.d.ts → types/types.d.ts} +13 -49
  18. package/dist/index.d.ts +7 -6
  19. package/dist/index.js +1 -0
  20. package/dist/scripts/_lib/config.d.ts +15 -12
  21. package/dist/scripts/_lib/config.js +34 -27
  22. package/dist/scripts/generateConstants.d.ts +12 -0
  23. package/dist/scripts/generateConstants.js +179 -0
  24. package/dist/scripts/generateSchemaShims.js +2 -2
  25. package/dist/scripts/generateStandaloneSchema.js +1 -1
  26. package/dist/scripts/{generateStandaloneTypeTS.js → generateStandaloneType.js} +9 -9
  27. package/dist/scripts/generateTerminals.js +58 -0
  28. package/dist/scripts/generateTypes.d.ts +1 -0
  29. package/dist/scripts/{generateTypesTS.js → generateTypes.js} +11 -11
  30. package/dist/scripts/normalizeAnchorsToPointers.d.ts +1 -1
  31. package/dist/scripts/normalizeAnchorsToPointers.js +33 -12
  32. package/package.json +7 -5
  33. package/src/Genesis.json +0 -174
  34. package/src/generated/constants/constants.ts +61 -0
  35. package/src/generated/dependencies/dependencyMap.json +2 -14
  36. package/src/generated/dependencies/terminals.json +12 -0
  37. package/src/generated/normalized/Genesis.json +0 -261
  38. package/src/generated/resources/Genesis.json +0 -299
  39. package/src/generated/schemas/Genesis.json +0 -150
  40. package/src/generated/schemas/standalone/Goal.json +0 -33
  41. package/src/generated/schemas/standalone/Job.json +0 -42
  42. package/src/generated/schemas/standalone/RawStrategy.json +0 -46
  43. package/src/generated/schemas/standalone/ResourceType.json +0 -34
  44. package/src/generated/schemas/standalone/RunnableStrategy.json +0 -51
  45. package/src/generated/schemas/standalone/StrategyRun.json +0 -65
  46. package/src/generated/{typesTS → types}/standalone/Resource_Genesis.d.ts +1 -1
  47. package/{dist/generated/typesTS → src/generated/types}/standalone/Resource_Job.d.ts +1 -1
  48. package/{dist/generated/typesTS → src/generated/types}/standalone/Resource_RawStrategy.d.ts +1 -1
  49. package/{dist/generated/typesTS → src/generated/types}/standalone/Resource_ResourceType.d.ts +1 -1
  50. package/src/generated/{typesTS → types}/standalone/Resource_RunnableStrategy.d.ts +1 -1
  51. package/src/generated/{typesTS/typesTS.d.ts → types/types.d.ts} +13 -49
  52. package/src/index.ts +9 -7
  53. package/src/scripts/_lib/config.ts +39 -29
  54. package/src/scripts/generateConstants.ts +217 -0
  55. package/src/scripts/generateSchemaShims.ts +2 -2
  56. package/src/scripts/generateStandaloneSchema.ts +1 -1
  57. package/src/scripts/{generateStandaloneTypeTS.ts → generateStandaloneType.ts} +9 -9
  58. package/src/scripts/generateTerminals.ts +73 -0
  59. package/src/scripts/{generateTypesTS.ts → generateTypes.ts} +11 -11
  60. package/src/scripts/normalizeAnchorsToPointers.ts +38 -12
  61. /package/dist/generated/{typesTS → types}/standalone/Resource_Genesis.js +0 -0
  62. /package/dist/generated/{typesTS → types}/standalone/Resource_Job.js +0 -0
  63. /package/dist/generated/{typesTS → types}/standalone/Resource_RawStrategy.js +0 -0
  64. /package/dist/generated/{typesTS → types}/standalone/Resource_ResourceType.js +0 -0
  65. /package/dist/generated/{typesTS → types}/standalone/Resource_RunnableStrategy.js +0 -0
  66. /package/dist/generated/{typesTS/typesTS.js → types/types.js} +0 -0
  67. /package/dist/scripts/{generateStandaloneTypeTS.d.ts → generateStandaloneType.d.ts} +0 -0
  68. /package/dist/scripts/{generateTypesTS.d.ts → generateTerminals.d.ts} +0 -0
  69. /package/src/generated/{typesTS → types}/standalone/Resource_Genesis.js +0 -0
  70. /package/src/generated/{typesTS → types}/standalone/Resource_Job.js +0 -0
  71. /package/src/generated/{typesTS → types}/standalone/Resource_RawStrategy.js +0 -0
  72. /package/src/generated/{typesTS → types}/standalone/Resource_ResourceType.js +0 -0
  73. /package/src/generated/{typesTS → types}/standalone/Resource_RunnableStrategy.js +0 -0
  74. /package/src/generated/{typesTS/typesTS.js → types/types.js} +0 -0
@@ -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,7 +88,6 @@
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": [
@@ -126,7 +117,6 @@
126
117
  ]
127
118
  },
128
119
  "BranchStep": {
129
- "$anchor": "BranchStep",
130
120
  "$schema": "https://json-schema.org/draft/2020-12/schema",
131
121
  "type": "object",
132
122
  "required": [
@@ -157,7 +147,6 @@
157
147
  ]
158
148
  },
159
149
  "WhileStep": {
160
- "$anchor": "WhileStep",
161
150
  "$schema": "https://json-schema.org/draft/2020-12/schema",
162
151
  "type": "object",
163
152
  "required": [
@@ -183,7 +172,6 @@
183
172
  ]
184
173
  },
185
174
  "ForStep": {
186
- "$anchor": "ForStep",
187
175
  "$schema": "https://json-schema.org/draft/2020-12/schema",
188
176
  "type": "object",
189
177
  "required": [
@@ -209,13 +197,11 @@
209
197
  ]
210
198
  },
211
199
  "ResourceRoleIdentity": {
212
- "$anchor": "ResourceRoleIdentity",
213
200
  "$schema": "https://json-schema.org/draft/2020-12/schema",
214
201
  "type": "string",
215
202
  "pattern": "^ROLE-.+$"
216
203
  },
217
204
  "Resource": {
218
- "$anchor": "Resource",
219
205
  "$schema": "https://json-schema.org/draft/2020-12/schema",
220
206
  "type": "object",
221
207
  "oneOf": [
@@ -235,13 +221,11 @@
235
221
  "unevaluatedProperties": false
236
222
  },
237
223
  "JobIdentity": {
238
- "$anchor": "JobIdentity",
239
224
  "$schema": "https://json-schema.org/draft/2020-12/schema",
240
225
  "type": "string",
241
226
  "pattern": "^JOB-.+$"
242
227
  },
243
228
  "StepKindFacet": {
244
- "$anchor": "StepKindFacet",
245
229
  "$schema": "https://json-schema.org/draft/2020-12/schema",
246
230
  "type": "object",
247
231
  "required": [
@@ -254,7 +238,6 @@
254
238
  }
255
239
  },
256
240
  "RoleBindingsFacet": {
257
- "$anchor": "RoleBindingsFacet",
258
241
  "$schema": "https://json-schema.org/draft/2020-12/schema",
259
242
  "type": "object",
260
243
  "required": [
@@ -267,13 +250,11 @@
267
250
  }
268
251
  },
269
252
  "BranchStepIdentity": {
270
- "$anchor": "BranchStepIdentity",
271
253
  "$schema": "https://json-schema.org/draft/2020-12/schema",
272
254
  "type": "string",
273
255
  "pattern": "^BRANCH_STEP-.+$"
274
256
  },
275
257
  "Conditional": {
276
- "$anchor": "Conditional",
277
258
  "$schema": "https://json-schema.org/draft/2020-12/schema",
278
259
  "type": "object",
279
260
  "required": [
@@ -291,40 +272,34 @@
291
272
  "unevaluatedProperties": false
292
273
  },
293
274
  "WhileStepIdentity": {
294
- "$anchor": "WhileStepIdentity",
295
275
  "$schema": "https://json-schema.org/draft/2020-12/schema",
296
276
  "type": "string",
297
277
  "pattern": "^WHILE_STEP-.+$"
298
278
  },
299
279
  "ForStepIdentity": {
300
- "$anchor": "ForStepIdentity",
301
280
  "$schema": "https://json-schema.org/draft/2020-12/schema",
302
281
  "type": "string",
303
282
  "pattern": "^FOR_STEP-.+$"
304
283
  },
305
284
  "ResourceMissing": {
306
- "$anchor": "ResourceMissing",
307
285
  "$schema": "https://json-schema.org/draft/2020-12/schema",
308
286
  "type": "object",
309
287
  "$ref": "#/$defs/ShellMissing",
310
288
  "unevaluatedProperties": false
311
289
  },
312
290
  "ResourceInputPotential": {
313
- "$anchor": "ResourceInputPotential",
314
291
  "$schema": "https://json-schema.org/draft/2020-12/schema",
315
292
  "type": "object",
316
293
  "$ref": "#/$defs/ShellInputPotential",
317
294
  "unevaluatedProperties": false
318
295
  },
319
296
  "ResourceOutputPotential": {
320
- "$anchor": "ResourceOutputPotential",
321
297
  "$schema": "https://json-schema.org/draft/2020-12/schema",
322
298
  "type": "object",
323
299
  "$ref": "#/$defs/ShellOutputPotential",
324
300
  "unevaluatedProperties": false
325
301
  },
326
302
  "ResourceMaterialized": {
327
- "$anchor": "ResourceMaterialized",
328
303
  "$schema": "https://json-schema.org/draft/2020-12/schema",
329
304
  "type": "object",
330
305
  "allOf": [
@@ -339,7 +314,6 @@
339
314
  "unevaluatedProperties": false
340
315
  },
341
316
  "StepKind": {
342
- "$anchor": "StepKind",
343
317
  "$schema": "https://json-schema.org/draft/2020-12/schema",
344
318
  "type": "string",
345
319
  "enum": [
@@ -350,7 +324,6 @@
350
324
  ]
351
325
  },
352
326
  "RoleBindings": {
353
- "$anchor": "RoleBindings",
354
327
  "$schema": "https://json-schema.org/draft/2020-12/schema",
355
328
  "type": "object",
356
329
  "required": [
@@ -367,7 +340,6 @@
367
340
  }
368
341
  },
369
342
  "ShellMissing": {
370
- "$anchor": "ShellMissing",
371
343
  "$schema": "https://json-schema.org/draft/2020-12/schema",
372
344
  "type": "object",
373
345
  "properties": {
@@ -386,7 +358,6 @@
386
358
  "unevaluatedProperties": false
387
359
  },
388
360
  "ShellInputPotential": {
389
- "$anchor": "ShellInputPotential",
390
361
  "$schema": "https://json-schema.org/draft/2020-12/schema",
391
362
  "type": "object",
392
363
  "properties": {
@@ -408,7 +379,6 @@
408
379
  "unevaluatedProperties": false
409
380
  },
410
381
  "ShellOutputPotential": {
411
- "$anchor": "ShellOutputPotential",
412
382
  "$schema": "https://json-schema.org/draft/2020-12/schema",
413
383
  "type": "object",
414
384
  "properties": {
@@ -430,7 +400,6 @@
430
400
  "unevaluatedProperties": false
431
401
  },
432
402
  "ShellMaterializedBase": {
433
- "$anchor": "ShellMaterializedBase",
434
403
  "$schema": "https://json-schema.org/draft/2020-12/schema",
435
404
  "type": "object",
436
405
  "required": [
@@ -463,7 +432,6 @@
463
432
  ]
464
433
  },
465
434
  "NucleusFacet": {
466
- "$anchor": "NucleusFacet",
467
435
  "$schema": "https://json-schema.org/draft/2020-12/schema",
468
436
  "type": "object",
469
437
  "required": [
@@ -476,7 +444,6 @@
476
444
  }
477
445
  },
478
446
  "RoleBindingArray": {
479
- "$anchor": "RoleBindingArray",
480
447
  "$schema": "https://json-schema.org/draft/2020-12/schema",
481
448
  "type": "array",
482
449
  "items": {
@@ -484,7 +451,6 @@
484
451
  }
485
452
  },
486
453
  "ResourceShellBase": {
487
- "$anchor": "ResourceShellBase",
488
454
  "$schema": "https://json-schema.org/draft/2020-12/schema",
489
455
  "type": "object",
490
456
  "required": [
@@ -505,7 +471,6 @@
505
471
  }
506
472
  },
507
473
  "ResourceKindFacet": {
508
- "$anchor": "ResourceKindFacet",
509
474
  "$schema": "https://json-schema.org/draft/2020-12/schema",
510
475
  "type": "object",
511
476
  "required": [
@@ -518,7 +483,6 @@
518
483
  }
519
484
  },
520
485
  "CreationContextFacet": {
521
- "$anchor": "CreationContextFacet",
522
486
  "$schema": "https://json-schema.org/draft/2020-12/schema",
523
487
  "type": "object",
524
488
  "required": [
@@ -531,7 +495,6 @@
531
495
  }
532
496
  },
533
497
  "TimestampFacet": {
534
- "$anchor": "TimestampFacet",
535
498
  "$schema": "https://json-schema.org/draft/2020-12/schema",
536
499
  "type": "object",
537
500
  "required": [
@@ -544,7 +507,6 @@
544
507
  }
545
508
  },
546
509
  "PathFacet": {
547
- "$anchor": "PathFacet",
548
510
  "$schema": "https://json-schema.org/draft/2020-12/schema",
549
511
  "type": "object",
550
512
  "required": [
@@ -557,7 +519,6 @@
557
519
  }
558
520
  },
559
521
  "Nucleus": {
560
- "$anchor": "Nucleus",
561
522
  "$schema": "https://json-schema.org/draft/2020-12/schema",
562
523
  "type": "object",
563
524
  "additionalProperties": {
@@ -565,19 +526,16 @@
565
526
  }
566
527
  },
567
528
  "ResourceIdentity": {
568
- "$anchor": "ResourceIdentity",
569
529
  "$schema": "https://json-schema.org/draft/2020-12/schema",
570
530
  "type": "string",
571
531
  "pattern": "^RESOURCE-.+$"
572
532
  },
573
533
  "ResourceTypeIdentity": {
574
- "$anchor": "ResourceTypeIdentity",
575
534
  "$schema": "https://json-schema.org/draft/2020-12/schema",
576
535
  "type": "string",
577
536
  "pattern": "^TYPE-.+$"
578
537
  },
579
538
  "ResourceKind": {
580
- "$anchor": "ResourceKind",
581
539
  "$schema": "https://json-schema.org/draft/2020-12/schema",
582
540
  "type": "string",
583
541
  "enum": [
@@ -588,7 +546,6 @@
588
546
  ]
589
547
  },
590
548
  "CreationContext": {
591
- "$anchor": "CreationContext",
592
549
  "$schema": "https://json-schema.org/draft/2020-12/schema",
593
550
  "type": "object",
594
551
  "required": [
@@ -605,19 +562,16 @@
605
562
  }
606
563
  },
607
564
  "Timestamp": {
608
- "$anchor": "Timestamp",
609
565
  "$schema": "https://json-schema.org/draft/2020-12/schema",
610
566
  "type": "string",
611
567
  "format": "date-time"
612
568
  },
613
569
  "Path": {
614
- "$anchor": "Path",
615
570
  "$schema": "https://json-schema.org/draft/2020-12/schema",
616
571
  "type": "string",
617
572
  "format": "uri-reference"
618
573
  },
619
574
  "JsonData": {
620
- "$anchor": "JsonData",
621
575
  "$schema": "https://json-schema.org/draft/2020-12/schema",
622
576
  "oneOf": [
623
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,