@camunda/element-templates-json-schema 0.17.0 → 0.17.2
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 +33 -55
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/element-templates-json-schema",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.2",
|
|
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": "e017d841eb2bcf3fbbb88ffe02b1caf874e73360"
|
|
29
29
|
}
|
package/resources/schema.json
CHANGED
|
@@ -110,36 +110,16 @@
|
|
|
110
110
|
]
|
|
111
111
|
},
|
|
112
112
|
"conditionDependingOnId": {
|
|
113
|
-
"
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"const": {
|
|
121
|
-
"$data": "2/id"
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"required": [
|
|
128
|
-
"allMatch"
|
|
129
|
-
],
|
|
130
|
-
"allMatch": {
|
|
131
|
-
"contains": {
|
|
132
|
-
"properties": {
|
|
133
|
-
"property": {
|
|
134
|
-
"const": {
|
|
135
|
-
"$data": "2/id"
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
113
|
+
"required": [
|
|
114
|
+
"property"
|
|
115
|
+
],
|
|
116
|
+
"properties": {
|
|
117
|
+
"property": {
|
|
118
|
+
"const": {
|
|
119
|
+
"$data": "2/id"
|
|
140
120
|
}
|
|
141
121
|
}
|
|
142
|
-
|
|
122
|
+
}
|
|
143
123
|
}
|
|
144
124
|
},
|
|
145
125
|
"allOf": [
|
|
@@ -163,33 +143,6 @@
|
|
|
163
143
|
]
|
|
164
144
|
}
|
|
165
145
|
}
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
"$comment": "property#condition should not depend on property#id",
|
|
169
|
-
"if": {
|
|
170
|
-
"required": [
|
|
171
|
-
"id",
|
|
172
|
-
"choices"
|
|
173
|
-
],
|
|
174
|
-
"properties": {
|
|
175
|
-
"choices": {
|
|
176
|
-
"contains": {
|
|
177
|
-
"properties": {
|
|
178
|
-
"condition": {
|
|
179
|
-
"$ref": "#/definitions/properties/allOf/0/items/allOf/1/definitions/conditionDependingOnId"
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
"then": {
|
|
187
|
-
"not": {
|
|
188
|
-
"required": [
|
|
189
|
-
"choices"
|
|
190
|
-
]
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
146
|
}
|
|
194
147
|
],
|
|
195
148
|
"properties": {
|
|
@@ -260,6 +213,30 @@
|
|
|
260
213
|
]
|
|
261
214
|
}
|
|
262
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
|
+
}
|
|
263
240
|
}
|
|
264
241
|
],
|
|
265
242
|
"properties": {
|
|
@@ -267,6 +244,7 @@
|
|
|
267
244
|
"$id": "#/properties/property/value",
|
|
268
245
|
"type": [
|
|
269
246
|
"string",
|
|
247
|
+
"number",
|
|
270
248
|
"boolean"
|
|
271
249
|
],
|
|
272
250
|
"description": "The value of a control field."
|