@camunda/zeebe-element-templates-json-schema 0.26.0 → 0.27.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/zeebe-element-templates-json-schema",
3
- "version": "0.26.0",
3
+ "version": "0.27.0",
4
4
  "description": "JSON Schema for (Zeebe) Element Templates",
5
5
  "files": [
6
6
  "resources"
@@ -26,5 +26,5 @@
26
26
  "camunda"
27
27
  ],
28
28
  "license": "MIT",
29
- "gitHead": "4c71975620ad1578d542be7d377aff9b3fa5310d"
29
+ "gitHead": "847a3bc22a7f5fa05f5e1336afc59a079d720258"
30
30
  }
@@ -330,7 +330,7 @@
330
330
  "properties",
331
331
  "type"
332
332
  ],
333
- "errorMessage": "invalid property.binding type ${0}; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader, bpmn:Message#property, bpmn:Message#zeebe:subscription#property, zeebe:taskDefinition, zeebe:calledElement, zeebe:linkedResource, zeebe:userTask, zeebe:formDefinition, zeebe:calledDecision, zeebe:script }"
333
+ "errorMessage": "invalid property.binding type ${0}; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader, bpmn:Message#property, bpmn:Message#zeebe:subscription#property, zeebe:taskDefinition, zeebe:calledElement, zeebe:linkedResource, zeebe:userTask, zeebe:formDefinition, zeebe:calledDecision, zeebe:script, zeebe:assignmentDefinition }"
334
334
  },
335
335
  {
336
336
  "path": [
@@ -397,10 +397,10 @@
397
397
  "allOf",
398
398
  4,
399
399
  "then",
400
- "allOf",
401
- 0
400
+ "properties",
401
+ "properties"
402
402
  ],
403
- "errorMessage": "When using \"zeebe:formDefinition\", \"zeebe:userTask\" must be set on the same element"
403
+ "errorMessage": "When using \"zeebe:formDefinition\" or \"zeebe:assignmentDefinition\", \"zeebe:userTask\" must be set on the same element"
404
404
  },
405
405
  {
406
406
  "path": [
@@ -466,7 +466,8 @@
466
466
  "zeebe:linkedResource",
467
467
  "zeebe:formDefinition",
468
468
  "zeebe:calledDecision",
469
- "zeebe:script"
469
+ "zeebe:script",
470
+ "zeebe:assignmentDefinition"
470
471
  ]
471
472
  }
472
473
  },
@@ -1171,6 +1172,48 @@
1171
1172
  }
1172
1173
  }
1173
1174
  ]
1175
+ },
1176
+ {
1177
+ "if": {
1178
+ "properties": {
1179
+ "binding": {
1180
+ "properties": {
1181
+ "type": {
1182
+ "const": "zeebe:assignmentDefinition"
1183
+ },
1184
+ "property": {
1185
+ "enum": [
1186
+ "assignee",
1187
+ "candidateUsers",
1188
+ "candidateGroups"
1189
+ ]
1190
+ }
1191
+ },
1192
+ "required": [
1193
+ "type",
1194
+ "property"
1195
+ ]
1196
+ }
1197
+ },
1198
+ "required": [
1199
+ "binding"
1200
+ ]
1201
+ },
1202
+ "then": {
1203
+ "required": [
1204
+ "type"
1205
+ ],
1206
+ "properties": {
1207
+ "type": {
1208
+ "enum": [
1209
+ "Hidden",
1210
+ "String",
1211
+ "Text",
1212
+ "Dropdown"
1213
+ ]
1214
+ }
1215
+ }
1216
+ }
1174
1217
  }
1175
1218
  ],
1176
1219
  "properties": {
@@ -1384,6 +1427,32 @@
1384
1427
  ]
1385
1428
  }
1386
1429
  },
1430
+ {
1431
+ "if": {
1432
+ "properties": {
1433
+ "type": {
1434
+ "const": "zeebe:assignmentDefinition"
1435
+ }
1436
+ },
1437
+ "required": [
1438
+ "type"
1439
+ ]
1440
+ },
1441
+ "then": {
1442
+ "properties": {
1443
+ "property": {
1444
+ "enum": [
1445
+ "assignee",
1446
+ "candidateUsers",
1447
+ "candidateGroups"
1448
+ ]
1449
+ }
1450
+ },
1451
+ "required": [
1452
+ "property"
1453
+ ]
1454
+ }
1455
+ },
1387
1456
  {
1388
1457
  "examples": [
1389
1458
  {
@@ -1437,7 +1506,8 @@
1437
1506
  "zeebe:userTask",
1438
1507
  "zeebe:formDefinition",
1439
1508
  "zeebe:calledDecision",
1440
- "zeebe:script"
1509
+ "zeebe:script",
1510
+ "zeebe:assignmentDefinition"
1441
1511
  ]
1442
1512
  },
1443
1513
  "name": {
@@ -1982,7 +2052,10 @@
1982
2052
  "binding": {
1983
2053
  "properties": {
1984
2054
  "type": {
1985
- "const": "zeebe:formDefinition"
2055
+ "enum": [
2056
+ "zeebe:formDefinition",
2057
+ "zeebe:assignmentDefinition"
2058
+ ]
1986
2059
  }
1987
2060
  },
1988
2061
  "required": [
@@ -2001,33 +2074,29 @@
2001
2074
  ]
2002
2075
  },
2003
2076
  "then": {
2004
- "allOf": [
2005
- {
2006
- "properties": {
2077
+ "properties": {
2078
+ "properties": {
2079
+ "contains": {
2007
2080
  "properties": {
2008
- "contains": {
2081
+ "binding": {
2009
2082
  "properties": {
2010
- "binding": {
2011
- "properties": {
2012
- "type": {
2013
- "const": "zeebe:userTask"
2014
- }
2015
- },
2016
- "required": [
2017
- "type"
2018
- ]
2083
+ "type": {
2084
+ "const": "zeebe:userTask"
2019
2085
  }
2020
2086
  },
2021
2087
  "required": [
2022
- "binding"
2088
+ "type"
2023
2089
  ]
2024
2090
  }
2025
- }
2026
- },
2027
- "required": [
2028
- "properties"
2029
- ]
2091
+ },
2092
+ "required": [
2093
+ "binding"
2094
+ ]
2095
+ }
2030
2096
  }
2097
+ },
2098
+ "required": [
2099
+ "properties"
2031
2100
  ]
2032
2101
  }
2033
2102
  },