@toolproof-npm/schema 0.1.48 → 0.1.51
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/dist/genesis/generated/resources/Genesis.json +164 -191
- package/dist/genesis/generated/schemas/Genesis.json +157 -184
- package/dist/genesis/generated/schemas/Job.json +20 -22
- package/dist/genesis/generated/schemas/ResourceFormat.json +14 -16
- package/dist/genesis/generated/schemas/ResourceType.json +36 -33
- package/dist/genesis/generated/schemas/StatefulStrategy.json +225 -251
- package/dist/genesis/generated/schemas/StatelessStrategy.json +103 -123
- package/dist/genesis/generated/types/types.d.ts +549 -149
- package/dist/genesis/resourceTypes/Genesis.json +164 -191
- package/package.json +1 -1
|
@@ -2,20 +2,6 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"type": "object",
|
|
4
4
|
"allOf": [
|
|
5
|
-
{
|
|
6
|
-
"properties": {
|
|
7
|
-
"identity": {
|
|
8
|
-
"$ref": "#/$defs/ResourceTypeIdentity"
|
|
9
|
-
},
|
|
10
|
-
"resourceFormatRef": {
|
|
11
|
-
"$ref": "#/$defs/ResourceFormatIdentity"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
"required": [
|
|
15
|
-
"identity",
|
|
16
|
-
"resourceFormatRef"
|
|
17
|
-
]
|
|
18
|
-
},
|
|
19
5
|
{
|
|
20
6
|
"$ref": "#/$defs/Documented"
|
|
21
7
|
},
|
|
@@ -29,43 +15,43 @@
|
|
|
29
15
|
"const": "FORMAT-ApplicationJson"
|
|
30
16
|
}
|
|
31
17
|
},
|
|
32
|
-
"$comment": "If resourceFormatRef is FORMAT-ApplicationJson, then
|
|
18
|
+
"$comment": "If resourceFormatRef is FORMAT-ApplicationJson, then extractorUri must not be present, but if resourceFormatRef is not FORMAT-ApplicationJson, then extractorUri must be present. This is because resources of types with format FORMAT-ApplicationJson are self-contained and do not need an extractor."
|
|
33
19
|
},
|
|
34
20
|
"then": {
|
|
35
21
|
"not": {
|
|
36
22
|
"required": [
|
|
37
|
-
"
|
|
23
|
+
"extractorUri"
|
|
38
24
|
]
|
|
39
25
|
}
|
|
40
26
|
},
|
|
41
27
|
"else": {
|
|
42
28
|
"type": "object",
|
|
43
29
|
"properties": {
|
|
44
|
-
"
|
|
30
|
+
"extractorUri": {
|
|
45
31
|
"type": "string",
|
|
46
32
|
"format": "uri"
|
|
47
33
|
}
|
|
48
34
|
},
|
|
49
35
|
"required": [
|
|
50
|
-
"
|
|
36
|
+
"extractorUri"
|
|
51
37
|
]
|
|
52
38
|
}
|
|
53
39
|
}
|
|
54
40
|
],
|
|
41
|
+
"properties": {
|
|
42
|
+
"identity": {
|
|
43
|
+
"$ref": "#/$defs/ResourceTypeIdentity"
|
|
44
|
+
},
|
|
45
|
+
"resourceFormatRef": {
|
|
46
|
+
"$ref": "#/$defs/ResourceFormatIdentity"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"required": [
|
|
50
|
+
"identity",
|
|
51
|
+
"resourceFormatRef"
|
|
52
|
+
],
|
|
55
53
|
"$anchor": "ResourceType",
|
|
56
54
|
"$defs": {
|
|
57
|
-
"ResourceTypeIdentity": {
|
|
58
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
59
|
-
"type": "string",
|
|
60
|
-
"$anchor": "ResourceTypeIdentity",
|
|
61
|
-
"pattern": "^TYPE-.+$"
|
|
62
|
-
},
|
|
63
|
-
"ResourceFormatIdentity": {
|
|
64
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
65
|
-
"type": "string",
|
|
66
|
-
"$anchor": "ResourceFormatIdentity",
|
|
67
|
-
"pattern": "^FORMAT-.+$"
|
|
68
|
-
},
|
|
69
55
|
"Documented": {
|
|
70
56
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
71
57
|
"type": "object",
|
|
@@ -92,6 +78,18 @@
|
|
|
92
78
|
],
|
|
93
79
|
"$anchor": "ExtractionSchemaWrapper"
|
|
94
80
|
},
|
|
81
|
+
"ResourceTypeIdentity": {
|
|
82
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
83
|
+
"type": "string",
|
|
84
|
+
"$anchor": "ResourceTypeIdentity",
|
|
85
|
+
"pattern": "^TYPE-.+$"
|
|
86
|
+
},
|
|
87
|
+
"ResourceFormatIdentity": {
|
|
88
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
89
|
+
"type": "string",
|
|
90
|
+
"$anchor": "ResourceFormatIdentity",
|
|
91
|
+
"pattern": "^FORMAT-.+$"
|
|
92
|
+
},
|
|
95
93
|
"Named": {
|
|
96
94
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
97
95
|
"type": "object",
|
|
@@ -138,7 +136,10 @@
|
|
|
138
136
|
"type": "object",
|
|
139
137
|
"properties": {
|
|
140
138
|
"identity": {}
|
|
141
|
-
}
|
|
139
|
+
},
|
|
140
|
+
"required": [
|
|
141
|
+
"identity"
|
|
142
|
+
]
|
|
142
143
|
}
|
|
143
144
|
}
|
|
144
145
|
},
|
|
@@ -167,7 +168,10 @@
|
|
|
167
168
|
"type": "object",
|
|
168
169
|
"properties": {
|
|
169
170
|
"merit": {}
|
|
170
|
-
}
|
|
171
|
+
},
|
|
172
|
+
"required": [
|
|
173
|
+
"merit"
|
|
174
|
+
]
|
|
171
175
|
}
|
|
172
176
|
}
|
|
173
177
|
},
|
|
@@ -337,7 +341,6 @@
|
|
|
337
341
|
"required",
|
|
338
342
|
"properties"
|
|
339
343
|
],
|
|
340
|
-
"additionalProperties": false,
|
|
341
344
|
"$anchor": "MeritProp"
|
|
342
345
|
},
|
|
343
346
|
"IdentitySchema": {
|