@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.
@@ -1,26 +1,21 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "type": "object",
4
- "allOf": [
5
- {
6
- "type": "object",
7
- "properties": {
8
- "identity": {
9
- "$ref": "#/$defs/StatelessStrategyIdentity"
10
- },
11
- "steps": {
12
- "type": "array",
13
- "items": {
14
- "$ref": "#/$defs/Step"
15
- },
16
- "uniqueItems": true
17
- }
4
+ "properties": {
5
+ "identity": {
6
+ "$ref": "#/$defs/StatelessStrategyIdentity"
7
+ },
8
+ "steps": {
9
+ "type": "array",
10
+ "items": {
11
+ "$ref": "#/$defs/Step"
18
12
  },
19
- "required": [
20
- "identity",
21
- "steps"
22
- ]
13
+ "uniqueItems": true
23
14
  }
15
+ },
16
+ "required": [
17
+ "identity",
18
+ "steps"
24
19
  ],
25
20
  "unevaluatedProperties": false,
26
21
  "$anchor": "StatelessStrategy",
@@ -57,26 +52,23 @@
57
52
  "allOf": [
58
53
  {
59
54
  "$ref": "#/$defs/StepKind"
55
+ }
56
+ ],
57
+ "properties": {
58
+ "execution": {
59
+ "$ref": "#/$defs/Execution"
60
60
  },
61
- {
62
- "type": "object",
63
- "properties": {
64
- "execution": {
65
- "$ref": "#/$defs/Execution"
66
- },
67
- "identity": {
68
- "$ref": "#/$defs/WorkStepIdentity"
69
- },
70
- "kind": {
71
- "const": "work"
72
- }
73
- },
74
- "required": [
75
- "identity",
76
- "kind",
77
- "execution"
78
- ]
61
+ "identity": {
62
+ "$ref": "#/$defs/WorkStepIdentity"
63
+ },
64
+ "kind": {
65
+ "const": "work"
79
66
  }
67
+ },
68
+ "required": [
69
+ "identity",
70
+ "kind",
71
+ "execution"
80
72
  ],
81
73
  "$anchor": "WorkStep"
82
74
  },
@@ -86,31 +78,28 @@
86
78
  "allOf": [
87
79
  {
88
80
  "$ref": "#/$defs/StepKind"
89
- },
90
- {
91
- "type": "object",
92
- "properties": {
93
- "cases": {
94
- "type": "array",
95
- "items": {
96
- "$ref": "#/$defs/Conditional"
97
- },
98
- "minItems": 1,
99
- "uniqueItems": true
100
- },
101
- "identity": {
102
- "$ref": "#/$defs/BranchStepIdentity"
103
- },
104
- "kind": {
105
- "const": "branch"
106
- }
81
+ }
82
+ ],
83
+ "properties": {
84
+ "cases": {
85
+ "type": "array",
86
+ "items": {
87
+ "$ref": "#/$defs/Conditional"
107
88
  },
108
- "required": [
109
- "identity",
110
- "kind",
111
- "cases"
112
- ]
89
+ "minItems": 1,
90
+ "uniqueItems": true
91
+ },
92
+ "identity": {
93
+ "$ref": "#/$defs/BranchStepIdentity"
94
+ },
95
+ "kind": {
96
+ "const": "branch"
113
97
  }
98
+ },
99
+ "required": [
100
+ "identity",
101
+ "kind",
102
+ "cases"
114
103
  ],
115
104
  "$anchor": "BranchStep"
116
105
  },
@@ -120,26 +109,23 @@
120
109
  "allOf": [
121
110
  {
122
111
  "$ref": "#/$defs/StepKind"
112
+ }
113
+ ],
114
+ "properties": {
115
+ "case": {
116
+ "$ref": "#/$defs/Conditional"
123
117
  },
124
- {
125
- "type": "object",
126
- "properties": {
127
- "case": {
128
- "$ref": "#/$defs/Conditional"
129
- },
130
- "identity": {
131
- "$ref": "#/$defs/WhileStepIdentity"
132
- },
133
- "kind": {
134
- "const": "while"
135
- }
136
- },
137
- "required": [
138
- "identity",
139
- "kind",
140
- "case"
141
- ]
118
+ "identity": {
119
+ "$ref": "#/$defs/WhileStepIdentity"
120
+ },
121
+ "kind": {
122
+ "const": "while"
142
123
  }
124
+ },
125
+ "required": [
126
+ "identity",
127
+ "kind",
128
+ "case"
143
129
  ],
144
130
  "$anchor": "WhileStep"
145
131
  },
@@ -149,26 +135,23 @@
149
135
  "allOf": [
150
136
  {
151
137
  "$ref": "#/$defs/StepKind"
138
+ }
139
+ ],
140
+ "properties": {
141
+ "case": {
142
+ "$ref": "#/$defs/Conditional"
152
143
  },
153
- {
154
- "type": "object",
155
- "properties": {
156
- "case": {
157
- "$ref": "#/$defs/Conditional"
158
- },
159
- "identity": {
160
- "$ref": "#/$defs/ForStepIdentity"
161
- },
162
- "kind": {
163
- "const": "for"
164
- }
165
- },
166
- "required": [
167
- "identity",
168
- "kind",
169
- "case"
170
- ]
144
+ "identity": {
145
+ "$ref": "#/$defs/ForStepIdentity"
146
+ },
147
+ "kind": {
148
+ "const": "for"
171
149
  }
150
+ },
151
+ "required": [
152
+ "identity",
153
+ "kind",
154
+ "case"
172
155
  ],
173
156
  "$anchor": "ForStep"
174
157
  },
@@ -195,26 +178,23 @@
195
178
  "$schema": "https://json-schema.org/draft/2020-12/schema",
196
179
  "type": "object",
197
180
  "allOf": [
198
- {
199
- "type": "object",
200
- "properties": {
201
- "identity": {
202
- "$ref": "#/$defs/ExecutionIdentity"
203
- },
204
- "jobRef": {
205
- "$ref": "#/$defs/JobIdentity"
206
- }
207
- },
208
- "required": [
209
- "identity",
210
- "jobRef"
211
- ]
212
- },
213
181
  {
214
182
  "$comment": "This will be overlayed at runtime to specify roleBindings corresponding to the roles of the underlying job.",
215
183
  "$ref": "#/$defs/RoleBindingsWrapper"
216
184
  }
217
185
  ],
186
+ "properties": {
187
+ "identity": {
188
+ "$ref": "#/$defs/ExecutionIdentity"
189
+ },
190
+ "jobRef": {
191
+ "$ref": "#/$defs/JobIdentity"
192
+ }
193
+ },
194
+ "required": [
195
+ "identity",
196
+ "jobRef"
197
+ ],
218
198
  "$anchor": "Execution"
219
199
  },
220
200
  "WorkStepIdentity": {
@@ -259,19 +239,6 @@
259
239
  "$anchor": "ForStepIdentity",
260
240
  "pattern": "^FORSTEP-.+$"
261
241
  },
262
- "ExecutionIdentity": {
263
- "$schema": "https://json-schema.org/draft/2020-12/schema",
264
- "type": "string",
265
- "$anchor": "ExecutionIdentity",
266
- "pattern": "^EXECUTION-.+$"
267
- },
268
- "JobIdentity": {
269
- "$schema": "https://json-schema.org/draft/2020-12/schema",
270
- "type": "string",
271
- "$anchor": "JobIdentity",
272
- "$comment": "",
273
- "pattern": "^JOB-.+$"
274
- },
275
242
  "RoleBindingsWrapper": {
276
243
  "$schema": "https://json-schema.org/draft/2020-12/schema",
277
244
  "type": "object",
@@ -285,6 +252,19 @@
285
252
  ],
286
253
  "$anchor": "RoleBindingsWrapper"
287
254
  },
255
+ "ExecutionIdentity": {
256
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
257
+ "type": "string",
258
+ "$anchor": "ExecutionIdentity",
259
+ "pattern": "^EXECUTION-.+$"
260
+ },
261
+ "JobIdentity": {
262
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
263
+ "type": "string",
264
+ "$anchor": "JobIdentity",
265
+ "$comment": "",
266
+ "pattern": "^JOB-.+$"
267
+ },
288
268
  "RoleBindings": {
289
269
  "$schema": "https://json-schema.org/draft/2020-12/schema",
290
270
  "type": "object",