@camunda/element-templates-json-schema 0.11.0 → 0.12.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.11.0",
3
+ "version": "0.12.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": "4ce1e13b87008fb65b4b242c7a9f99e5c835892a"
28
+ "gitHead": "9e7328bdb70118c0f71cc21563b2c00d6946d242"
29
29
  }
@@ -140,6 +140,8 @@
140
140
  0,
141
141
  "items",
142
142
  "properties",
143
+ "condition",
144
+ "definitions",
143
145
  "condition"
144
146
  ],
145
147
  "errorMessage": {
@@ -170,7 +170,7 @@
170
170
  "condition": {
171
171
  "$id": "#/condition",
172
172
  "type": "object",
173
- "description": "Condition to activate the binding.",
173
+ "description": "Condition(s) to activate the binding.",
174
174
  "allOf": [
175
175
  {
176
176
  "examples": [
@@ -187,55 +187,98 @@
187
187
  "PUT",
188
188
  "DELETE"
189
189
  ]
190
+ },
191
+ {
192
+ "allMatch": [
193
+ {
194
+ "type": "simple",
195
+ "property": "authType",
196
+ "equals": "Basic"
197
+ },
198
+ {
199
+ "type": "simple",
200
+ "property": "httpMethod",
201
+ "oneOf": [
202
+ "POST",
203
+ "PUT",
204
+ "DELETE"
205
+ ]
206
+ }
207
+ ]
190
208
  }
191
209
  ]
192
210
  }
193
211
  ],
194
- "required": [
195
- "property"
196
- ],
197
- "properties": {
198
- "type": {
199
- "$id": "#/condition/type",
200
- "const": "simple",
201
- "description": "The type of the condition.",
202
- "default": "simple"
203
- },
204
- "property": {
205
- "$id": "#/condition/property",
206
- "type": "string",
207
- "description": "The id of the property to check."
208
- }
209
- },
210
- "oneOf": [
211
- {
212
+ "definitions": {
213
+ "condition": {
214
+ "type": "object",
215
+ "required": [
216
+ "property"
217
+ ],
212
218
  "properties": {
213
- "equals": {
214
- "type": [
215
- "string",
216
- "number",
217
- "boolean"
218
- ]
219
+ "type": {
220
+ "$id": "#/condition/type",
221
+ "const": "simple",
222
+ "description": "The type of the condition.",
223
+ "default": "simple"
224
+ },
225
+ "property": {
226
+ "$id": "#/condition/property",
227
+ "type": "string",
228
+ "description": "The id of the property to check."
219
229
  }
220
230
  },
221
- "required": [
222
- "equals"
231
+ "oneOf": [
232
+ {
233
+ "properties": {
234
+ "equals": {
235
+ "type": [
236
+ "string",
237
+ "number",
238
+ "boolean"
239
+ ]
240
+ }
241
+ },
242
+ "required": [
243
+ "equals"
244
+ ]
245
+ },
246
+ {
247
+ "properties": {
248
+ "oneOf": {
249
+ "type": "array",
250
+ "items": {
251
+ "type": [
252
+ "string",
253
+ "number"
254
+ ]
255
+ }
256
+ }
257
+ },
258
+ "required": [
259
+ "oneOf"
260
+ ]
261
+ }
223
262
  ]
263
+ }
264
+ },
265
+ "oneOf": [
266
+ {
267
+ "$ref": "#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"
224
268
  },
225
269
  {
226
270
  "properties": {
227
- "oneOf": {
271
+ "allMatch": {
272
+ "$id": "#/allMatch",
228
273
  "type": "array",
229
274
  "items": {
230
- "type": [
231
- "string",
232
- "number"
233
- ]
234
- }
275
+ "$ref": "#/definitions/properties/allOf/0/items/properties/condition/definitions/condition"
276
+ },
277
+ "minItems": 1
235
278
  }
236
279
  },
237
280
  "required": [
238
- "oneOf"
281
+ "allMatch"
239
282
  ]
240
283
  }
241
284
  ]