@camunda/element-templates-json-schema 0.16.0 → 0.17.1
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/error-messages.json +32 -2
- package/resources/schema.json +170 -132
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/element-templates-json-schema",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.1",
|
|
4
4
|
"description": "JSON Schema for (Camunda) Element Templates",
|
|
5
5
|
"files": [
|
|
6
6
|
"resources"
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"camunda"
|
|
26
26
|
],
|
|
27
27
|
"license": "MIT",
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "8546f9a24eeef869b6e7e61b53caaa060c52b0ea"
|
|
29
29
|
}
|
|
@@ -139,8 +139,8 @@
|
|
|
139
139
|
"allOf",
|
|
140
140
|
0,
|
|
141
141
|
"items",
|
|
142
|
-
"
|
|
143
|
-
|
|
142
|
+
"allOf",
|
|
143
|
+
1,
|
|
144
144
|
"definitions",
|
|
145
145
|
"condition"
|
|
146
146
|
],
|
|
@@ -150,6 +150,36 @@
|
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
},
|
|
153
|
+
{
|
|
154
|
+
"path": [
|
|
155
|
+
"definitions",
|
|
156
|
+
"properties",
|
|
157
|
+
"allOf",
|
|
158
|
+
0,
|
|
159
|
+
"items",
|
|
160
|
+
"allOf",
|
|
161
|
+
1,
|
|
162
|
+
"allOf",
|
|
163
|
+
0,
|
|
164
|
+
"then"
|
|
165
|
+
],
|
|
166
|
+
"errorMessage": "Invalid condition.property, must be different than property.id"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"path": [
|
|
170
|
+
"definitions",
|
|
171
|
+
"properties",
|
|
172
|
+
"allOf",
|
|
173
|
+
0,
|
|
174
|
+
"items",
|
|
175
|
+
"allOf",
|
|
176
|
+
1,
|
|
177
|
+
"allOf",
|
|
178
|
+
1,
|
|
179
|
+
"then"
|
|
180
|
+
],
|
|
181
|
+
"errorMessage": "Invalid condition.property, must be different than property.id"
|
|
182
|
+
},
|
|
153
183
|
{
|
|
154
184
|
"path": [
|
|
155
185
|
"definitions",
|
package/resources/schema.json
CHANGED
|
@@ -44,13 +44,178 @@
|
|
|
44
44
|
"choices"
|
|
45
45
|
]
|
|
46
46
|
}
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"definitions": {
|
|
50
|
+
"condition": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"required": [
|
|
53
|
+
"property"
|
|
54
|
+
],
|
|
55
|
+
"properties": {
|
|
56
|
+
"type": {
|
|
57
|
+
"$id": "#/condition/type",
|
|
58
|
+
"const": "simple",
|
|
59
|
+
"description": "The type of the condition.",
|
|
60
|
+
"default": "simple"
|
|
61
|
+
},
|
|
62
|
+
"property": {
|
|
63
|
+
"$id": "#/condition/property",
|
|
64
|
+
"type": "string",
|
|
65
|
+
"description": "The id of the property to check."
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"oneOf": [
|
|
69
|
+
{
|
|
70
|
+
"properties": {
|
|
71
|
+
"equals": {
|
|
72
|
+
"type": [
|
|
73
|
+
"string",
|
|
74
|
+
"number",
|
|
75
|
+
"boolean"
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"required": [
|
|
80
|
+
"equals"
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"properties": {
|
|
85
|
+
"oneOf": {
|
|
86
|
+
"type": "array",
|
|
87
|
+
"items": {
|
|
88
|
+
"type": [
|
|
89
|
+
"string",
|
|
90
|
+
"number"
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"required": [
|
|
96
|
+
"oneOf"
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"properties": {
|
|
101
|
+
"isActive": {
|
|
102
|
+
"type": "boolean",
|
|
103
|
+
"description": "For `true`, activates the property when given property is active"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"required": [
|
|
107
|
+
"isActive"
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
"conditionDependingOnId": {
|
|
113
|
+
"required": [
|
|
114
|
+
"property"
|
|
115
|
+
],
|
|
116
|
+
"properties": {
|
|
117
|
+
"property": {
|
|
118
|
+
"const": {
|
|
119
|
+
"$data": "2/id"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"allOf": [
|
|
126
|
+
{
|
|
127
|
+
"$comment": "property#condition should not depend on property#id",
|
|
128
|
+
"if": {
|
|
129
|
+
"required": [
|
|
130
|
+
"id",
|
|
131
|
+
"condition"
|
|
132
|
+
],
|
|
133
|
+
"properties": {
|
|
134
|
+
"condition": {
|
|
135
|
+
"$ref": "#/definitions/properties/allOf/0/items/allOf/1/definitions/conditionDependingOnId"
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"then": {
|
|
140
|
+
"not": {
|
|
141
|
+
"required": [
|
|
142
|
+
"condition"
|
|
143
|
+
]
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"properties": {
|
|
149
|
+
"id": {
|
|
150
|
+
"type": "string",
|
|
151
|
+
"description": "Unique identifier of the property."
|
|
152
|
+
},
|
|
153
|
+
"condition": {
|
|
154
|
+
"type": "object",
|
|
155
|
+
"description": "Condition(s) to activate the binding.",
|
|
156
|
+
"allOf": [
|
|
157
|
+
{
|
|
158
|
+
"examples": [
|
|
159
|
+
{
|
|
160
|
+
"type": "simple",
|
|
161
|
+
"property": "httpMethod",
|
|
162
|
+
"equals": "GET"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"type": "simple",
|
|
166
|
+
"property": "httpMethod",
|
|
167
|
+
"oneOf": [
|
|
168
|
+
"POST",
|
|
169
|
+
"PUT",
|
|
170
|
+
"DELETE"
|
|
171
|
+
]
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"allMatch": [
|
|
175
|
+
{
|
|
176
|
+
"type": "simple",
|
|
177
|
+
"property": "authType",
|
|
178
|
+
"equals": "Basic"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"type": "simple",
|
|
182
|
+
"property": "httpMethod",
|
|
183
|
+
"oneOf": [
|
|
184
|
+
"POST",
|
|
185
|
+
"PUT",
|
|
186
|
+
"DELETE"
|
|
187
|
+
]
|
|
188
|
+
}
|
|
189
|
+
]
|
|
190
|
+
}
|
|
191
|
+
]
|
|
192
|
+
}
|
|
193
|
+
],
|
|
194
|
+
"oneOf": [
|
|
195
|
+
{
|
|
196
|
+
"$ref": "#/definitions/properties/allOf/0/items/allOf/1/definitions/condition"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"properties": {
|
|
200
|
+
"allMatch": {
|
|
201
|
+
"$id": "#/allMatch",
|
|
202
|
+
"type": "array",
|
|
203
|
+
"items": {
|
|
204
|
+
"$ref": "#/definitions/properties/allOf/0/items/allOf/1/definitions/condition"
|
|
205
|
+
},
|
|
206
|
+
"minItems": 1
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"required": [
|
|
210
|
+
"allMatch"
|
|
211
|
+
]
|
|
212
|
+
}
|
|
213
|
+
]
|
|
214
|
+
}
|
|
215
|
+
}
|
|
47
216
|
}
|
|
48
217
|
],
|
|
49
218
|
"properties": {
|
|
50
|
-
"id": {
|
|
51
|
-
"type": "string",
|
|
52
|
-
"description": "Unique identifier of the property."
|
|
53
|
-
},
|
|
54
219
|
"value": {
|
|
55
220
|
"$id": "#/properties/property/value",
|
|
56
221
|
"type": [
|
|
@@ -100,7 +265,7 @@
|
|
|
100
265
|
"description": "The value of a choice."
|
|
101
266
|
},
|
|
102
267
|
"condition": {
|
|
103
|
-
"$ref": "#/definitions/properties/allOf/0/items/properties/condition"
|
|
268
|
+
"$ref": "#/definitions/properties/allOf/0/items/allOf/1/properties/condition"
|
|
104
269
|
}
|
|
105
270
|
},
|
|
106
271
|
"required": [
|
|
@@ -169,133 +334,6 @@
|
|
|
169
334
|
"$id": "#/properties/property/group",
|
|
170
335
|
"type": "string",
|
|
171
336
|
"description": "The custom group of a control field."
|
|
172
|
-
},
|
|
173
|
-
"condition": {
|
|
174
|
-
"$id": "#/condition",
|
|
175
|
-
"type": "object",
|
|
176
|
-
"description": "Condition(s) to activate the binding.",
|
|
177
|
-
"allOf": [
|
|
178
|
-
{
|
|
179
|
-
"examples": [
|
|
180
|
-
{
|
|
181
|
-
"type": "simple",
|
|
182
|
-
"property": "httpMethod",
|
|
183
|
-
"equals": "GET"
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
"type": "simple",
|
|
187
|
-
"property": "httpMethod",
|
|
188
|
-
"oneOf": [
|
|
189
|
-
"POST",
|
|
190
|
-
"PUT",
|
|
191
|
-
"DELETE"
|
|
192
|
-
]
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
"allMatch": [
|
|
196
|
-
{
|
|
197
|
-
"type": "simple",
|
|
198
|
-
"property": "authType",
|
|
199
|
-
"equals": "Basic"
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
"type": "simple",
|
|
203
|
-
"property": "httpMethod",
|
|
204
|
-
"oneOf": [
|
|
205
|
-
"POST",
|
|
206
|
-
"PUT",
|
|
207
|
-
"DELETE"
|
|
208
|
-
]
|
|
209
|
-
}
|
|
210
|
-
]
|
|
211
|
-
}
|
|
212
|
-
]
|
|
213
|
-
}
|
|
214
|
-
],
|
|
215
|
-
"definitions": {
|
|
216
|
-
"condition": {
|
|
217
|
-
"type": "object",
|
|
218
|
-
"required": [
|
|
219
|
-
"property"
|
|
220
|
-
],
|
|
221
|
-
"properties": {
|
|
222
|
-
"type": {
|
|
223
|
-
"$id": "#/condition/type",
|
|
224
|
-
"const": "simple",
|
|
225
|
-
"description": "The type of the condition.",
|
|
226
|
-
"default": "simple"
|
|
227
|
-
},
|
|
228
|
-
"property": {
|
|
229
|
-
"$id": "#/condition/property",
|
|
230
|
-
"type": "string",
|
|
231
|
-
"description": "The id of the property to check."
|
|
232
|
-
}
|
|
233
|
-
},
|
|
234
|
-
"oneOf": [
|
|
235
|
-
{
|
|
236
|
-
"properties": {
|
|
237
|
-
"equals": {
|
|
238
|
-
"type": [
|
|
239
|
-
"string",
|
|
240
|
-
"number",
|
|
241
|
-
"boolean"
|
|
242
|
-
]
|
|
243
|
-
}
|
|
244
|
-
},
|
|
245
|
-
"required": [
|
|
246
|
-
"equals"
|
|
247
|
-
]
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
"properties": {
|
|
251
|
-
"oneOf": {
|
|
252
|
-
"type": "array",
|
|
253
|
-
"items": {
|
|
254
|
-
"type": [
|
|
255
|
-
"string",
|
|
256
|
-
"number"
|
|
257
|
-
]
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
},
|
|
261
|
-
"required": [
|
|
262
|
-
"oneOf"
|
|
263
|
-
]
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
"properties": {
|
|
267
|
-
"isActive": {
|
|
268
|
-
"type": "boolean",
|
|
269
|
-
"description": "For `true`, activates the property when given property is active"
|
|
270
|
-
}
|
|
271
|
-
},
|
|
272
|
-
"required": [
|
|
273
|
-
"isActive"
|
|
274
|
-
]
|
|
275
|
-
}
|
|
276
|
-
]
|
|
277
|
-
}
|
|
278
|
-
},
|
|
279
|
-
"oneOf": [
|
|
280
|
-
{
|
|
281
|
-
"$ref": "#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
"properties": {
|
|
285
|
-
"allMatch": {
|
|
286
|
-
"$id": "#/allMatch",
|
|
287
|
-
"type": "array",
|
|
288
|
-
"items": {
|
|
289
|
-
"$ref": "#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"
|
|
290
|
-
},
|
|
291
|
-
"minItems": 1
|
|
292
|
-
}
|
|
293
|
-
},
|
|
294
|
-
"required": [
|
|
295
|
-
"allMatch"
|
|
296
|
-
]
|
|
297
|
-
}
|
|
298
|
-
]
|
|
299
337
|
}
|
|
300
338
|
}
|
|
301
339
|
}
|