@camunda/zeebe-element-templates-json-schema 0.31.1 → 0.32.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 +2 -2
- package/resources/deprecated-warnings.json +17 -0
- package/resources/schema.json +74 -49
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/zeebe-element-templates-json-schema",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.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": "
|
|
29
|
+
"gitHead": "092e8fa005c236f5fa02bb3e359a5132ea48b43e"
|
|
30
30
|
}
|
package/resources/schema.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"allOf": [
|
|
8
8
|
{
|
|
9
9
|
"type": "array",
|
|
10
|
-
"description": "List of
|
|
10
|
+
"description": "List of the template's properties.",
|
|
11
11
|
"allOf": [
|
|
12
12
|
{
|
|
13
13
|
"examples": [
|
|
@@ -56,19 +56,21 @@
|
|
|
56
56
|
"type": {
|
|
57
57
|
"$id": "#/condition/type",
|
|
58
58
|
"const": "simple",
|
|
59
|
-
"description": "
|
|
59
|
+
"description": "Defines the type of the condition (always \"simple\").",
|
|
60
60
|
"default": "simple"
|
|
61
61
|
},
|
|
62
62
|
"property": {
|
|
63
63
|
"$id": "#/condition/property",
|
|
64
64
|
"type": "string",
|
|
65
|
-
"description": "
|
|
65
|
+
"description": "Reference to the property used to evaluate the condition."
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
"oneOf": [
|
|
69
69
|
{
|
|
70
|
+
"description": "Checks if the referenced property's value is in the list of values defined in the condition.",
|
|
70
71
|
"properties": {
|
|
71
72
|
"equals": {
|
|
73
|
+
"description": "Checks if the referenced property's value is equal to the value defined in the condition.",
|
|
72
74
|
"type": [
|
|
73
75
|
"string",
|
|
74
76
|
"number",
|
|
@@ -100,7 +102,7 @@
|
|
|
100
102
|
"properties": {
|
|
101
103
|
"isActive": {
|
|
102
104
|
"type": "boolean",
|
|
103
|
-
"description": "
|
|
105
|
+
"description": "Checks if the referenced property is currently active and not hidden by other conditions."
|
|
104
106
|
}
|
|
105
107
|
},
|
|
106
108
|
"required": [
|
|
@@ -148,11 +150,11 @@
|
|
|
148
150
|
"properties": {
|
|
149
151
|
"id": {
|
|
150
152
|
"type": "string",
|
|
151
|
-
"description": "Unique identifier of the property."
|
|
153
|
+
"description": "Unique identifier of the property. Can be used to, for example, reference the property for checks."
|
|
152
154
|
},
|
|
153
155
|
"condition": {
|
|
154
156
|
"type": "object",
|
|
155
|
-
"description": "
|
|
157
|
+
"description": "Object that defines when a property should be displayed in the properties panel and its value should be included in the XML.",
|
|
156
158
|
"allOf": [
|
|
157
159
|
{
|
|
158
160
|
"examples": [
|
|
@@ -203,7 +205,8 @@
|
|
|
203
205
|
"items": {
|
|
204
206
|
"$ref": "#/definitions/properties/allOf/0/items/allOf/1/definitions/condition"
|
|
205
207
|
},
|
|
206
|
-
"minItems": 1
|
|
208
|
+
"minItems": 1,
|
|
209
|
+
"description": "List of conditions that must all be met for the property to be active."
|
|
207
210
|
}
|
|
208
211
|
},
|
|
209
212
|
"required": [
|
|
@@ -266,7 +269,8 @@
|
|
|
266
269
|
"then": {
|
|
267
270
|
"properties": {
|
|
268
271
|
"placeholder": {
|
|
269
|
-
"type": "string"
|
|
272
|
+
"type": "string",
|
|
273
|
+
"description": "Placeholder text shown in the property input field when it is empty. Can be used to show example input."
|
|
270
274
|
}
|
|
271
275
|
}
|
|
272
276
|
},
|
|
@@ -287,17 +291,17 @@
|
|
|
287
291
|
"number",
|
|
288
292
|
"boolean"
|
|
289
293
|
],
|
|
290
|
-
"description": "
|
|
294
|
+
"description": "Default value to be used if the user does not provide a value or if the type is Hidden."
|
|
291
295
|
},
|
|
292
296
|
"description": {
|
|
293
297
|
"$id": "#/properties/property/description",
|
|
294
298
|
"type": "string",
|
|
295
|
-
"description": "
|
|
299
|
+
"description": "Hint text shown below the property input field."
|
|
296
300
|
},
|
|
297
301
|
"label": {
|
|
298
302
|
"$id": "#/properties/property/label",
|
|
299
303
|
"type": "string",
|
|
300
|
-
"description": "
|
|
304
|
+
"description": "Label text shown above the property input field."
|
|
301
305
|
},
|
|
302
306
|
"type": {
|
|
303
307
|
"$id": "#/properties/property/type",
|
|
@@ -307,12 +311,12 @@
|
|
|
307
311
|
"editable": {
|
|
308
312
|
"$id": "#/properties/property/editable",
|
|
309
313
|
"type": "boolean",
|
|
310
|
-
"description": "
|
|
314
|
+
"description": "Defines whether users can edit the property in the properties panel. By default, all non-hidden properties are editable."
|
|
311
315
|
},
|
|
312
316
|
"choices": {
|
|
313
317
|
"$id": "#/properties/property/choices",
|
|
314
318
|
"type": "array",
|
|
315
|
-
"description": "
|
|
319
|
+
"description": "List of choices for a dropdown field.",
|
|
316
320
|
"default": [],
|
|
317
321
|
"items": {
|
|
318
322
|
"$id": "#/properties/property/choices/item",
|
|
@@ -322,12 +326,12 @@
|
|
|
322
326
|
"name": {
|
|
323
327
|
"$id": "#/properties/property/choices/item/name",
|
|
324
328
|
"type": "string",
|
|
325
|
-
"description": "
|
|
329
|
+
"description": "Display name for a choice in a dropdown field. Shown to the user."
|
|
326
330
|
},
|
|
327
331
|
"value": {
|
|
328
332
|
"$id": "#/properties/property/choices/item/value",
|
|
329
333
|
"type": "string",
|
|
330
|
-
"description": "
|
|
334
|
+
"description": "Value for a choice in a dropdown field. Stored in the XML."
|
|
331
335
|
},
|
|
332
336
|
"condition": {
|
|
333
337
|
"$ref": "#/definitions/properties/allOf/0/items/allOf/1/properties/condition"
|
|
@@ -342,7 +346,7 @@
|
|
|
342
346
|
"constraints": {
|
|
343
347
|
"$id": "#/properties/property/constraints",
|
|
344
348
|
"type": "object",
|
|
345
|
-
"description": "
|
|
349
|
+
"description": "Object that contains rules to validate user input to the template.",
|
|
346
350
|
"allOf": [
|
|
347
351
|
{
|
|
348
352
|
"examples": [
|
|
@@ -370,7 +374,7 @@
|
|
|
370
374
|
},
|
|
371
375
|
"pattern": {
|
|
372
376
|
"$id": "#/properties/property/constraints/pattern",
|
|
373
|
-
"description": "
|
|
377
|
+
"description": "String or object that defines a regular expression that the user's input must match.",
|
|
374
378
|
"oneOf": [
|
|
375
379
|
{
|
|
376
380
|
"type": "object",
|
|
@@ -379,12 +383,12 @@
|
|
|
379
383
|
"value": {
|
|
380
384
|
"$id": "#/properties/property/constraints/pattern/value",
|
|
381
385
|
"type": "string",
|
|
382
|
-
"description": "The
|
|
386
|
+
"description": "The value of the regular expression."
|
|
383
387
|
},
|
|
384
388
|
"message": {
|
|
385
389
|
"$id": "#/properties/property/constraints/pattern/message",
|
|
386
390
|
"type": "string",
|
|
387
|
-
"description": "
|
|
391
|
+
"description": "Custom error message to show when the user's input does not match the regular expression."
|
|
388
392
|
}
|
|
389
393
|
}
|
|
390
394
|
},
|
|
@@ -398,7 +402,7 @@
|
|
|
398
402
|
"group": {
|
|
399
403
|
"$id": "#/properties/property/group",
|
|
400
404
|
"type": "string",
|
|
401
|
-
"description": "
|
|
405
|
+
"description": "Group in the properties panel that the property belongs to."
|
|
402
406
|
}
|
|
403
407
|
}
|
|
404
408
|
}
|
|
@@ -1920,22 +1924,22 @@
|
|
|
1920
1924
|
"name": {
|
|
1921
1925
|
"$id": "#/properties/property/binding/name",
|
|
1922
1926
|
"type": "string",
|
|
1923
|
-
"description": "The name of
|
|
1927
|
+
"description": "The name of the property binding."
|
|
1924
1928
|
},
|
|
1925
1929
|
"source": {
|
|
1926
1930
|
"$id": "#/properties/property/binding/source",
|
|
1927
1931
|
"type": "string",
|
|
1928
|
-
"description": "
|
|
1932
|
+
"description": "Source of the output parameter for an output mapping (created with zeebe:output)."
|
|
1929
1933
|
},
|
|
1930
1934
|
"key": {
|
|
1931
1935
|
"$id": "#/properties/property/binding/key",
|
|
1932
1936
|
"type": "string",
|
|
1933
|
-
"description": "
|
|
1937
|
+
"description": "Key of a task header (created with zeebe:taskHeader)."
|
|
1934
1938
|
},
|
|
1935
1939
|
"property": {
|
|
1936
1940
|
"$id": "#/properties/property/binding/property",
|
|
1937
1941
|
"type": "string",
|
|
1938
|
-
"description": "
|
|
1942
|
+
"description": "Name of a binding property."
|
|
1939
1943
|
},
|
|
1940
1944
|
"linkName": {
|
|
1941
1945
|
"$id": "#/properties/property/binding/linkName",
|
|
@@ -1952,7 +1956,7 @@
|
|
|
1952
1956
|
"feel": {
|
|
1953
1957
|
"$id": "#/properties/property/feel",
|
|
1954
1958
|
"type": "string",
|
|
1955
|
-
"description": "
|
|
1959
|
+
"description": "Defines whether the property supports FEEL expressions. Values can be \"optional\" (toggle), \"required\", or \"static\" (for Boolean/Number fields, persisted as FEEL).",
|
|
1956
1960
|
"enum": [
|
|
1957
1961
|
"optional",
|
|
1958
1962
|
"required",
|
|
@@ -1967,15 +1971,16 @@
|
|
|
1967
1971
|
"generatedValue": {
|
|
1968
1972
|
"$id": "#/properties/property/generatedValue",
|
|
1969
1973
|
"type": "object",
|
|
1974
|
+
"description": "Sets property to a generated value according to given scheme.",
|
|
1970
1975
|
"required": [
|
|
1971
1976
|
"type"
|
|
1972
1977
|
],
|
|
1973
1978
|
"properties": {
|
|
1974
1979
|
"type": {
|
|
1975
|
-
"const": "uuid"
|
|
1980
|
+
"const": "uuid",
|
|
1981
|
+
"description": "Value is generated as UUID."
|
|
1976
1982
|
}
|
|
1977
|
-
}
|
|
1978
|
-
"description": "Sets property to a generated value according to given scheme."
|
|
1983
|
+
}
|
|
1979
1984
|
},
|
|
1980
1985
|
"tooltip": {
|
|
1981
1986
|
"$id": "#/properties/property/tooltip",
|
|
@@ -1998,25 +2003,30 @@
|
|
|
1998
2003
|
"properties"
|
|
1999
2004
|
],
|
|
2000
2005
|
"properties": {
|
|
2006
|
+
"$schema": {
|
|
2007
|
+
"$id": "#/$schema",
|
|
2008
|
+
"type": "string",
|
|
2009
|
+
"description": "Reference to the Element Template JSON schema this document follows."
|
|
2010
|
+
},
|
|
2001
2011
|
"name": {
|
|
2002
2012
|
"$id": "#/name",
|
|
2003
2013
|
"type": "string",
|
|
2004
|
-
"description": "
|
|
2014
|
+
"description": "Template name. Shown during template selection and editing of a templated element. Required."
|
|
2005
2015
|
},
|
|
2006
2016
|
"id": {
|
|
2007
2017
|
"$id": "#/id",
|
|
2008
2018
|
"type": "string",
|
|
2009
|
-
"description": "
|
|
2019
|
+
"description": "Template identifier. Required."
|
|
2010
2020
|
},
|
|
2011
2021
|
"description": {
|
|
2012
2022
|
"$id": "#/description",
|
|
2013
2023
|
"type": "string",
|
|
2014
|
-
"description": "
|
|
2024
|
+
"description": "Template description. Shown during template selection and editing of a templated element."
|
|
2015
2025
|
},
|
|
2016
2026
|
"version": {
|
|
2017
2027
|
"$id": "#/version",
|
|
2018
2028
|
"type": "integer",
|
|
2019
|
-
"description": "Optional version of the template. If you add a version to a template it will be considered unique based on its ID and version. Two templates can have the same ID if their
|
|
2029
|
+
"description": "Optional version of the template. If you add a version to a template, it will be considered unique based on its ID and version. Two templates can have the same ID if their versions are different."
|
|
2020
2030
|
},
|
|
2021
2031
|
"isDefault": {
|
|
2022
2032
|
"$id": "#/isDefault",
|
|
@@ -2029,7 +2039,7 @@
|
|
|
2029
2039
|
"boolean",
|
|
2030
2040
|
"object"
|
|
2031
2041
|
],
|
|
2032
|
-
"description": "
|
|
2042
|
+
"description": "Marks the template as deprecated. Value can be either a boolean or an object with a message and a link to migration documentation.",
|
|
2033
2043
|
"properties": {
|
|
2034
2044
|
"message": {
|
|
2035
2045
|
"$id": "#/deprecated/message",
|
|
@@ -2040,14 +2050,14 @@
|
|
|
2040
2050
|
"$id": "#/deprecated/documentationRef",
|
|
2041
2051
|
"type": "string",
|
|
2042
2052
|
"pattern": "^(https|http)://.*",
|
|
2043
|
-
"description": "
|
|
2053
|
+
"description": "URL pointing to template documentation. Must be a valid http(s) URL."
|
|
2044
2054
|
}
|
|
2045
2055
|
}
|
|
2046
2056
|
},
|
|
2047
2057
|
"appliesTo": {
|
|
2048
2058
|
"$id": "#/appliesTo",
|
|
2049
2059
|
"type": "array",
|
|
2050
|
-
"description": "List of BPMN types the template can be applied to.",
|
|
2060
|
+
"description": "List of BPMN types the template can be applied to. Required.",
|
|
2051
2061
|
"default": [],
|
|
2052
2062
|
"items": {
|
|
2053
2063
|
"$id": "#/appliesTo/items",
|
|
@@ -2070,7 +2080,7 @@
|
|
|
2070
2080
|
"elementType": {
|
|
2071
2081
|
"$id": "#/elementType",
|
|
2072
2082
|
"type": "object",
|
|
2073
|
-
"description": "
|
|
2083
|
+
"description": "Object that sets the type of the element. Some properties require a specific value for elementType.",
|
|
2074
2084
|
"default": {},
|
|
2075
2085
|
"required": [
|
|
2076
2086
|
"value"
|
|
@@ -2080,6 +2090,7 @@
|
|
|
2080
2090
|
"$id": "#/elementType/value",
|
|
2081
2091
|
"type": "string",
|
|
2082
2092
|
"pattern": "^[\\w\\d]+:[\\w\\d]+$",
|
|
2093
|
+
"description": "Specifies the target BPMN element type. The element is replaced with the specified type when a user applies the template. Required if using elementType.",
|
|
2083
2094
|
"allOf": [
|
|
2084
2095
|
{
|
|
2085
2096
|
"examples": [
|
|
@@ -2106,18 +2117,18 @@
|
|
|
2106
2117
|
"items": {
|
|
2107
2118
|
"type": "string"
|
|
2108
2119
|
},
|
|
2109
|
-
"description": "List of keywords to
|
|
2120
|
+
"description": "List of keywords to help users find the template. Used in search and filtering, but not displayed in the UI.",
|
|
2110
2121
|
"default": []
|
|
2111
2122
|
},
|
|
2112
2123
|
"entriesVisible": {
|
|
2113
2124
|
"$id": "#/entriesVisible",
|
|
2114
2125
|
"type": "boolean",
|
|
2115
|
-
"description": "
|
|
2126
|
+
"description": "Defines whether all property input fields are shown, even those normally hidden by the template."
|
|
2116
2127
|
},
|
|
2117
2128
|
"groups": {
|
|
2118
2129
|
"$id": "#/groups",
|
|
2119
2130
|
"type": "array",
|
|
2120
|
-
"description": "
|
|
2131
|
+
"description": "List of custom groups to organize related fields in the properties panel.",
|
|
2121
2132
|
"allOf": [
|
|
2122
2133
|
{
|
|
2123
2134
|
"examples": [
|
|
@@ -2142,12 +2153,12 @@
|
|
|
2142
2153
|
"id": {
|
|
2143
2154
|
"$id": "#/groups/group/id",
|
|
2144
2155
|
"type": "string",
|
|
2145
|
-
"description": "
|
|
2156
|
+
"description": "Uniquely identifies a group object. Required if using groups."
|
|
2146
2157
|
},
|
|
2147
2158
|
"label": {
|
|
2148
2159
|
"$id": "#/groups/group/label",
|
|
2149
2160
|
"type": "string",
|
|
2150
|
-
"description": "The label of the
|
|
2161
|
+
"description": "The label of the group, shown as a section header in the properties panel. Required if using groups."
|
|
2151
2162
|
}
|
|
2152
2163
|
}
|
|
2153
2164
|
}
|
|
@@ -3688,7 +3699,7 @@
|
|
|
3688
3699
|
"engines": {
|
|
3689
3700
|
"$id": "#/engines",
|
|
3690
3701
|
"type": "object",
|
|
3691
|
-
"description": "
|
|
3702
|
+
"description": "Dictionary of environments compatible with the template. Environment version is specified with semantic versions range.",
|
|
3692
3703
|
"default": {},
|
|
3693
3704
|
"examples": [
|
|
3694
3705
|
{
|
|
@@ -3699,7 +3710,19 @@
|
|
|
3699
3710
|
"camunda": {
|
|
3700
3711
|
"$id": "#/engines/camunda",
|
|
3701
3712
|
"type": "string",
|
|
3702
|
-
"description": "
|
|
3713
|
+
"description": "Defines compatibility with Camunda orchestration cluster versions.",
|
|
3714
|
+
"default": ""
|
|
3715
|
+
},
|
|
3716
|
+
"camundaDesktopModeler": {
|
|
3717
|
+
"$id": "#/engines/camundaDesktopModeler",
|
|
3718
|
+
"type": "string",
|
|
3719
|
+
"description": "Defines compatibility with Desktop Modeler versions.",
|
|
3720
|
+
"default": ""
|
|
3721
|
+
},
|
|
3722
|
+
"camundaWebModeler": {
|
|
3723
|
+
"$id": "#/engines/camundaWebModeler",
|
|
3724
|
+
"type": "string",
|
|
3725
|
+
"description": "Defines compatibility with Web Modeler versions.",
|
|
3703
3726
|
"default": ""
|
|
3704
3727
|
}
|
|
3705
3728
|
}
|
|
@@ -3707,7 +3730,7 @@
|
|
|
3707
3730
|
"category": {
|
|
3708
3731
|
"$id": "#/category",
|
|
3709
3732
|
"type": "object",
|
|
3710
|
-
"description": "
|
|
3733
|
+
"description": "Object that defines a custom category for grouping templates, for example, in a selection modal. If not defined, defaults to Templates.",
|
|
3711
3734
|
"default": {},
|
|
3712
3735
|
"example": {
|
|
3713
3736
|
"id": "custom-category",
|
|
@@ -3717,12 +3740,12 @@
|
|
|
3717
3740
|
"id": {
|
|
3718
3741
|
"$id": "#/category/id",
|
|
3719
3742
|
"type": "string",
|
|
3720
|
-
"description": "
|
|
3743
|
+
"description": "Unique identifier for a category object. Required if using category."
|
|
3721
3744
|
},
|
|
3722
3745
|
"name": {
|
|
3723
3746
|
"$id": "#/category/name",
|
|
3724
3747
|
"type": "string",
|
|
3725
|
-
"description": "
|
|
3748
|
+
"description": "Display name of the category. Shown in the template selection modal. Required if using category."
|
|
3726
3749
|
}
|
|
3727
3750
|
},
|
|
3728
3751
|
"required": [
|
|
@@ -3733,7 +3756,7 @@
|
|
|
3733
3756
|
"icon": {
|
|
3734
3757
|
"$id": "#/icon",
|
|
3735
3758
|
"type": "object",
|
|
3736
|
-
"description": "Custom icon
|
|
3759
|
+
"description": "Custom icon shown in the element template selection modal and the properties panel. Must be a valid data URI or HTTP(s) URL. Square icons recommended.",
|
|
3737
3760
|
"default": {},
|
|
3738
3761
|
"properties": {
|
|
3739
3762
|
"contents": {
|
|
@@ -3755,6 +3778,7 @@
|
|
|
3755
3778
|
"properties": {
|
|
3756
3779
|
"eventDefinition": {
|
|
3757
3780
|
"$id": "#/elementType/eventDefinition",
|
|
3781
|
+
"description": "If templating a message event, set this key's value to \"bpmn:MessageEventDefinition\". Otherwise, ignore.",
|
|
3758
3782
|
"enum": [
|
|
3759
3783
|
"bpmn:MessageEventDefinition"
|
|
3760
3784
|
]
|
|
@@ -3793,12 +3817,13 @@
|
|
|
3793
3817
|
"properties": {
|
|
3794
3818
|
"tooltip": {
|
|
3795
3819
|
"$id": "#/groups/group/tooltip",
|
|
3796
|
-
"type": "string"
|
|
3820
|
+
"type": "string",
|
|
3821
|
+
"description": "Tooltip shown when hovering over the group name in the properties panel."
|
|
3797
3822
|
},
|
|
3798
3823
|
"openByDefault": {
|
|
3799
3824
|
"$id": "#/groups/group/openByDefault",
|
|
3800
3825
|
"type": "boolean",
|
|
3801
|
-
"description": "
|
|
3826
|
+
"description": "Controls whether the group is initially expanded in the properties panel. Optional; default is false.",
|
|
3802
3827
|
"default": false
|
|
3803
3828
|
}
|
|
3804
3829
|
}
|