@camunda/element-templates-json-schema 0.17.1 → 0.18.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/element-templates-json-schema",
3
- "version": "0.17.1",
3
+ "version": "0.18.0",
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": "8546f9a24eeef869b6e7e61b53caaa060c52b0ea"
28
+ "gitHead": "56189528b503208c8c98cd4c4f2eab0ebe89bb1e"
29
29
  }
@@ -213,6 +213,70 @@
213
213
  ]
214
214
  }
215
215
  }
216
+ },
217
+ {
218
+ "if": {
219
+ "properties": {
220
+ "type": {
221
+ "not": {
222
+ "const": "Number"
223
+ }
224
+ }
225
+ },
226
+ "required": [
227
+ "type"
228
+ ]
229
+ },
230
+ "then": {
231
+ "properties": {
232
+ "value": {
233
+ "type": [
234
+ "string",
235
+ "boolean"
236
+ ]
237
+ }
238
+ }
239
+ }
240
+ },
241
+ {
242
+ "if": {
243
+ "oneOf": [
244
+ {
245
+ "properties": {
246
+ "type": {
247
+ "enum": [
248
+ "String",
249
+ "Text"
250
+ ]
251
+ }
252
+ },
253
+ "required": [
254
+ "type"
255
+ ]
256
+ },
257
+ {
258
+ "not": {
259
+ "required": [
260
+ "type"
261
+ ]
262
+ }
263
+ }
264
+ ]
265
+ },
266
+ "then": {
267
+ "properties": {
268
+ "placeholder": {
269
+ "type": "string"
270
+ }
271
+ }
272
+ },
273
+ "else": {
274
+ "not": {
275
+ "required": [
276
+ "placeholder"
277
+ ]
278
+ }
279
+ }
216
280
  }
217
281
  ],
218
282
  "properties": {
@@ -220,6 +284,7 @@
220
284
  "$id": "#/properties/property/value",
221
285
  "type": [
222
286
  "string",
287
+ "number",
223
288
  "boolean"
224
289
  ],
225
290
  "description": "The value of a control field."