@camunda/zeebe-element-templates-json-schema 0.6.0 → 0.8.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.
- package/package.json +3 -3
- package/resources/error-messages.json +18 -1
- package/resources/schema.json +112 -35
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/zeebe-element-templates-json-schema",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "JSON Schema for (Zeebe) Element Templates",
|
|
5
5
|
"files": [
|
|
6
6
|
"resources"
|
|
7
7
|
],
|
|
8
8
|
"scripts": {
|
|
9
|
-
"test": "mocha
|
|
9
|
+
"test": "mocha --reporter=spec --recursive test/spec",
|
|
10
10
|
"dev": "npm run test -- --watch",
|
|
11
11
|
"all": "run-s build test",
|
|
12
12
|
"build": "run-s build:error-messages build:schema",
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"camunda"
|
|
26
26
|
],
|
|
27
27
|
"license": "MIT",
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "9e7328bdb70118c0f71cc21563b2c00d6946d242"
|
|
29
29
|
}
|
|
@@ -140,6 +140,8 @@
|
|
|
140
140
|
0,
|
|
141
141
|
"items",
|
|
142
142
|
"properties",
|
|
143
|
+
"condition",
|
|
144
|
+
"definitions",
|
|
143
145
|
"condition"
|
|
144
146
|
],
|
|
145
147
|
"errorMessage": {
|
|
@@ -207,7 +209,7 @@
|
|
|
207
209
|
"properties",
|
|
208
210
|
"type"
|
|
209
211
|
],
|
|
210
|
-
"errorMessage": "optional is not supported for binding type ${0}; must be any of { zeebe:input, zeebe:output, zeebe:property }"
|
|
212
|
+
"errorMessage": "optional is not supported for binding type ${0}; must be any of { zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader }"
|
|
211
213
|
},
|
|
212
214
|
{
|
|
213
215
|
"path": [
|
|
@@ -241,6 +243,21 @@
|
|
|
241
243
|
],
|
|
242
244
|
"errorMessage": "feel is only supported for \"String\" and \"Text\" type"
|
|
243
245
|
},
|
|
246
|
+
{
|
|
247
|
+
"path": [
|
|
248
|
+
"definitions",
|
|
249
|
+
"properties",
|
|
250
|
+
"allOf",
|
|
251
|
+
1,
|
|
252
|
+
"items",
|
|
253
|
+
"allOf",
|
|
254
|
+
5,
|
|
255
|
+
"then",
|
|
256
|
+
"properties",
|
|
257
|
+
"type"
|
|
258
|
+
],
|
|
259
|
+
"errorMessage": "language is only supported for \"Text\" type"
|
|
260
|
+
},
|
|
244
261
|
{
|
|
245
262
|
"path": [
|
|
246
263
|
"definitions",
|
package/resources/schema.json
CHANGED
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
"condition": {
|
|
171
171
|
"$id": "#/condition",
|
|
172
172
|
"type": "object",
|
|
173
|
-
"description": "Condition to activate the binding.",
|
|
173
|
+
"description": "Condition(s) to activate the binding.",
|
|
174
174
|
"allOf": [
|
|
175
175
|
{
|
|
176
176
|
"examples": [
|
|
@@ -187,55 +187,98 @@
|
|
|
187
187
|
"PUT",
|
|
188
188
|
"DELETE"
|
|
189
189
|
]
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"allMatch": [
|
|
193
|
+
{
|
|
194
|
+
"type": "simple",
|
|
195
|
+
"property": "authType",
|
|
196
|
+
"equals": "Basic"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"type": "simple",
|
|
200
|
+
"property": "httpMethod",
|
|
201
|
+
"oneOf": [
|
|
202
|
+
"POST",
|
|
203
|
+
"PUT",
|
|
204
|
+
"DELETE"
|
|
205
|
+
]
|
|
206
|
+
}
|
|
207
|
+
]
|
|
190
208
|
}
|
|
191
209
|
]
|
|
192
210
|
}
|
|
193
211
|
],
|
|
194
|
-
"
|
|
195
|
-
"
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
"const": "simple",
|
|
201
|
-
"description": "The type of the condition.",
|
|
202
|
-
"default": "simple"
|
|
203
|
-
},
|
|
204
|
-
"property": {
|
|
205
|
-
"$id": "#/condition/property",
|
|
206
|
-
"type": "string",
|
|
207
|
-
"description": "The id of the property to check."
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
|
-
"oneOf": [
|
|
211
|
-
{
|
|
212
|
+
"definitions": {
|
|
213
|
+
"condition": {
|
|
214
|
+
"type": "object",
|
|
215
|
+
"required": [
|
|
216
|
+
"property"
|
|
217
|
+
],
|
|
212
218
|
"properties": {
|
|
213
|
-
"
|
|
214
|
-
"
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
+
"type": {
|
|
220
|
+
"$id": "#/condition/type",
|
|
221
|
+
"const": "simple",
|
|
222
|
+
"description": "The type of the condition.",
|
|
223
|
+
"default": "simple"
|
|
224
|
+
},
|
|
225
|
+
"property": {
|
|
226
|
+
"$id": "#/condition/property",
|
|
227
|
+
"type": "string",
|
|
228
|
+
"description": "The id of the property to check."
|
|
219
229
|
}
|
|
220
230
|
},
|
|
221
|
-
"
|
|
222
|
-
|
|
231
|
+
"oneOf": [
|
|
232
|
+
{
|
|
233
|
+
"properties": {
|
|
234
|
+
"equals": {
|
|
235
|
+
"type": [
|
|
236
|
+
"string",
|
|
237
|
+
"number",
|
|
238
|
+
"boolean"
|
|
239
|
+
]
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"required": [
|
|
243
|
+
"equals"
|
|
244
|
+
]
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"properties": {
|
|
248
|
+
"oneOf": {
|
|
249
|
+
"type": "array",
|
|
250
|
+
"items": {
|
|
251
|
+
"type": [
|
|
252
|
+
"string",
|
|
253
|
+
"number"
|
|
254
|
+
]
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"required": [
|
|
259
|
+
"oneOf"
|
|
260
|
+
]
|
|
261
|
+
}
|
|
223
262
|
]
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
"oneOf": [
|
|
266
|
+
{
|
|
267
|
+
"$ref": "#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"
|
|
224
268
|
},
|
|
225
269
|
{
|
|
226
270
|
"properties": {
|
|
227
|
-
"
|
|
271
|
+
"allMatch": {
|
|
272
|
+
"$id": "#/allMatch",
|
|
228
273
|
"type": "array",
|
|
229
274
|
"items": {
|
|
230
|
-
"
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
]
|
|
234
|
-
}
|
|
275
|
+
"$ref": "#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"
|
|
276
|
+
},
|
|
277
|
+
"minItems": 1
|
|
235
278
|
}
|
|
236
279
|
},
|
|
237
280
|
"required": [
|
|
238
|
-
"
|
|
281
|
+
"allMatch"
|
|
239
282
|
]
|
|
240
283
|
}
|
|
241
284
|
]
|
|
@@ -297,6 +340,7 @@
|
|
|
297
340
|
"zeebe:output",
|
|
298
341
|
"zeebe:property",
|
|
299
342
|
"zeebe:taskHeader",
|
|
343
|
+
"zeebe:taskDefinition:retries",
|
|
300
344
|
"zeebe:taskDefinition:type"
|
|
301
345
|
]
|
|
302
346
|
}
|
|
@@ -342,7 +386,8 @@
|
|
|
342
386
|
"enum": [
|
|
343
387
|
"zeebe:input",
|
|
344
388
|
"zeebe:output",
|
|
345
|
-
"zeebe:property"
|
|
389
|
+
"zeebe:property",
|
|
390
|
+
"zeebe:taskHeader"
|
|
346
391
|
]
|
|
347
392
|
}
|
|
348
393
|
},
|
|
@@ -405,6 +450,29 @@
|
|
|
405
450
|
"type"
|
|
406
451
|
]
|
|
407
452
|
}
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"if": {
|
|
456
|
+
"properties": {
|
|
457
|
+
"language": {
|
|
458
|
+
"not": {
|
|
459
|
+
"const": null
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
"required": [
|
|
464
|
+
"language"
|
|
465
|
+
]
|
|
466
|
+
},
|
|
467
|
+
"then": {
|
|
468
|
+
"properties": {
|
|
469
|
+
"type": {
|
|
470
|
+
"enum": [
|
|
471
|
+
"Text"
|
|
472
|
+
]
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
}
|
|
408
476
|
}
|
|
409
477
|
],
|
|
410
478
|
"properties": {
|
|
@@ -489,6 +557,9 @@
|
|
|
489
557
|
"type": "zeebe:property",
|
|
490
558
|
"name": "property"
|
|
491
559
|
},
|
|
560
|
+
{
|
|
561
|
+
"type": "zeebe:taskDefinition:retries"
|
|
562
|
+
},
|
|
492
563
|
{
|
|
493
564
|
"type": "zeebe:taskDefinition:type"
|
|
494
565
|
},
|
|
@@ -507,6 +578,7 @@
|
|
|
507
578
|
"enum": [
|
|
508
579
|
"property",
|
|
509
580
|
"zeebe:taskDefinition:type",
|
|
581
|
+
"zeebe:taskDefinition:retries",
|
|
510
582
|
"zeebe:input",
|
|
511
583
|
"zeebe:output",
|
|
512
584
|
"zeebe:property",
|
|
@@ -545,6 +617,11 @@
|
|
|
545
617
|
"optional",
|
|
546
618
|
"required"
|
|
547
619
|
]
|
|
620
|
+
},
|
|
621
|
+
"language": {
|
|
622
|
+
"$id": "#/properties/property/language",
|
|
623
|
+
"type": "string",
|
|
624
|
+
"description": "Indicates that the field is a custom language editor"
|
|
548
625
|
}
|
|
549
626
|
}
|
|
550
627
|
}
|