@camunda/zeebe-element-templates-json-schema 0.3.0 → 0.5.0-alpha.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/schema.json +115 -0
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.5.0-alpha.0",
|
|
4
4
|
"description": "JSON Schema for (Zeebe) Element Templates",
|
|
5
5
|
"files": [
|
|
6
6
|
"resources"
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"camunda"
|
|
24
24
|
],
|
|
25
25
|
"license": "MIT",
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "457a27772193578b941bae05d6af0f96841e5485"
|
|
27
27
|
}
|
package/resources/schema.json
CHANGED
|
@@ -48,6 +48,10 @@
|
|
|
48
48
|
}
|
|
49
49
|
],
|
|
50
50
|
"properties": {
|
|
51
|
+
"id": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"description": "Unique identifier of the property."
|
|
54
|
+
},
|
|
51
55
|
"value": {
|
|
52
56
|
"$id": "#/properties/property/value",
|
|
53
57
|
"type": [
|
|
@@ -164,6 +168,84 @@
|
|
|
164
168
|
"$id": "#/properties/property/group",
|
|
165
169
|
"type": "string",
|
|
166
170
|
"description": "The custom group of a control field."
|
|
171
|
+
},
|
|
172
|
+
"condition": {
|
|
173
|
+
"$id": "#/condition",
|
|
174
|
+
"type": "object",
|
|
175
|
+
"description": "Condition to activate the binding.",
|
|
176
|
+
"allOf": [
|
|
177
|
+
{
|
|
178
|
+
"examples": [
|
|
179
|
+
{
|
|
180
|
+
"type": "simple",
|
|
181
|
+
"property": "httpMethod",
|
|
182
|
+
"equals": "GET"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"type": "simple",
|
|
186
|
+
"property": "httpMethod",
|
|
187
|
+
"oneOf": [
|
|
188
|
+
"POST",
|
|
189
|
+
"PUT",
|
|
190
|
+
"DELETE"
|
|
191
|
+
]
|
|
192
|
+
}
|
|
193
|
+
]
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"required": [
|
|
197
|
+
"property"
|
|
198
|
+
],
|
|
199
|
+
"errorMessage": {
|
|
200
|
+
"required": {
|
|
201
|
+
"property": "missing property name for condition"
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"properties": {
|
|
205
|
+
"type": {
|
|
206
|
+
"$id": "#/condition/type",
|
|
207
|
+
"const": "simple",
|
|
208
|
+
"description": "The type of the condition.",
|
|
209
|
+
"default": "simple"
|
|
210
|
+
},
|
|
211
|
+
"property": {
|
|
212
|
+
"$id": "#/condition/property",
|
|
213
|
+
"type": "string",
|
|
214
|
+
"description": "The id of the property to check."
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"oneOf": [
|
|
218
|
+
{
|
|
219
|
+
"properties": {
|
|
220
|
+
"equals": {
|
|
221
|
+
"type": [
|
|
222
|
+
"string",
|
|
223
|
+
"number",
|
|
224
|
+
"boolean"
|
|
225
|
+
]
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"required": [
|
|
229
|
+
"equals"
|
|
230
|
+
]
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"properties": {
|
|
234
|
+
"oneOf": {
|
|
235
|
+
"type": "array",
|
|
236
|
+
"items": {
|
|
237
|
+
"type": [
|
|
238
|
+
"string",
|
|
239
|
+
"number"
|
|
240
|
+
]
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"required": [
|
|
245
|
+
"oneOf"
|
|
246
|
+
]
|
|
247
|
+
}
|
|
248
|
+
]
|
|
167
249
|
}
|
|
168
250
|
}
|
|
169
251
|
}
|
|
@@ -549,6 +631,14 @@
|
|
|
549
631
|
"type": "object",
|
|
550
632
|
"description": "The BPMN type the element will be transformed into.",
|
|
551
633
|
"default": {},
|
|
634
|
+
"required": [
|
|
635
|
+
"value"
|
|
636
|
+
],
|
|
637
|
+
"errorMessage": {
|
|
638
|
+
"required": {
|
|
639
|
+
"value": "missing elementType value"
|
|
640
|
+
}
|
|
641
|
+
},
|
|
552
642
|
"properties": {
|
|
553
643
|
"value": {
|
|
554
644
|
"$id": "#/elementType/value",
|
|
@@ -649,6 +739,31 @@
|
|
|
649
739
|
"properties": {
|
|
650
740
|
"$ref": "#/definitions/properties",
|
|
651
741
|
"$id": "#/properties"
|
|
742
|
+
},
|
|
743
|
+
"icon": {
|
|
744
|
+
"$id": "#/icon",
|
|
745
|
+
"type": "object",
|
|
746
|
+
"description": "Custom icon to be shown on the element",
|
|
747
|
+
"default": {},
|
|
748
|
+
"properties": {
|
|
749
|
+
"contents": {
|
|
750
|
+
"$id": "#/icon/contents",
|
|
751
|
+
"type": "string",
|
|
752
|
+
"description": "The URL of an icon.",
|
|
753
|
+
"pattern": "^(https?|data):.*",
|
|
754
|
+
"errorMessage": {
|
|
755
|
+
"pattern": "Malformed icon source, must be a valid HTTP(s) or data URL"
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
},
|
|
759
|
+
"required": [
|
|
760
|
+
"contents"
|
|
761
|
+
],
|
|
762
|
+
"errorMessage": {
|
|
763
|
+
"required": {
|
|
764
|
+
"contents": "missing icon contents"
|
|
765
|
+
}
|
|
766
|
+
}
|
|
652
767
|
}
|
|
653
768
|
}
|
|
654
769
|
}
|