@camunda/element-templates-json-schema 0.20.0 → 0.22.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.20.0",
3
+ "version": "0.22.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": "092e8fa005c236f5fa02bb3e359a5132ea48b43e"
28
+ "gitHead": "7218d77e42d7622db41d30b5a922037abd94f6e7"
29
29
  }
@@ -132,54 +132,6 @@
132
132
  }
133
133
  }
134
134
  },
135
- {
136
- "path": [
137
- "definitions",
138
- "properties",
139
- "allOf",
140
- 0,
141
- "items",
142
- "allOf",
143
- 1,
144
- "definitions",
145
- "condition"
146
- ],
147
- "errorMessage": {
148
- "required": {
149
- "property": "missing property name for condition"
150
- }
151
- }
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
- },
183
135
  {
184
136
  "path": [
185
137
  "definitions",
@@ -45,178 +45,6 @@
45
45
  ]
46
46
  }
47
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": "Defines the type of the condition (always \"simple\").",
60
- "default": "simple"
61
- },
62
- "property": {
63
- "$id": "#/condition/property",
64
- "type": "string",
65
- "description": "Reference to the property used to evaluate the condition."
66
- }
67
- },
68
- "oneOf": [
69
- {
70
- "description": "Checks if the referenced property's value is in the list of values defined in the condition.",
71
- "properties": {
72
- "equals": {
73
- "description": "Checks if the referenced property's value is equal to the value defined in the condition.",
74
- "type": [
75
- "string",
76
- "number",
77
- "boolean"
78
- ]
79
- }
80
- },
81
- "required": [
82
- "equals"
83
- ]
84
- },
85
- {
86
- "properties": {
87
- "oneOf": {
88
- "type": "array",
89
- "items": {
90
- "type": [
91
- "string",
92
- "number"
93
- ]
94
- }
95
- }
96
- },
97
- "required": [
98
- "oneOf"
99
- ]
100
- },
101
- {
102
- "properties": {
103
- "isActive": {
104
- "type": "boolean",
105
- "description": "Checks if the referenced property is currently active and not hidden by other conditions."
106
- }
107
- },
108
- "required": [
109
- "isActive"
110
- ]
111
- }
112
- ]
113
- },
114
- "conditionDependingOnId": {
115
- "required": [
116
- "property"
117
- ],
118
- "properties": {
119
- "property": {
120
- "const": {
121
- "$data": "2/id"
122
- }
123
- }
124
- }
125
- }
126
- },
127
- "allOf": [
128
- {
129
- "$comment": "property#condition should not depend on property#id",
130
- "if": {
131
- "required": [
132
- "id",
133
- "condition"
134
- ],
135
- "properties": {
136
- "condition": {
137
- "$ref": "#/definitions/properties/allOf/0/items/allOf/1/definitions/conditionDependingOnId"
138
- }
139
- }
140
- },
141
- "then": {
142
- "not": {
143
- "required": [
144
- "condition"
145
- ]
146
- }
147
- }
148
- }
149
- ],
150
- "properties": {
151
- "id": {
152
- "type": "string",
153
- "description": "Unique identifier of the property. Can be used to, for example, reference the property for checks."
154
- },
155
- "condition": {
156
- "type": "object",
157
- "description": "Object that defines when a property should be displayed in the properties panel and its value should be included in the XML.",
158
- "allOf": [
159
- {
160
- "examples": [
161
- {
162
- "type": "simple",
163
- "property": "httpMethod",
164
- "equals": "GET"
165
- },
166
- {
167
- "type": "simple",
168
- "property": "httpMethod",
169
- "oneOf": [
170
- "POST",
171
- "PUT",
172
- "DELETE"
173
- ]
174
- },
175
- {
176
- "allMatch": [
177
- {
178
- "type": "simple",
179
- "property": "authType",
180
- "equals": "Basic"
181
- },
182
- {
183
- "type": "simple",
184
- "property": "httpMethod",
185
- "oneOf": [
186
- "POST",
187
- "PUT",
188
- "DELETE"
189
- ]
190
- }
191
- ]
192
- }
193
- ]
194
- }
195
- ],
196
- "oneOf": [
197
- {
198
- "$ref": "#/definitions/properties/allOf/0/items/allOf/1/definitions/condition"
199
- },
200
- {
201
- "properties": {
202
- "allMatch": {
203
- "$id": "#/allMatch",
204
- "type": "array",
205
- "items": {
206
- "$ref": "#/definitions/properties/allOf/0/items/allOf/1/definitions/condition"
207
- },
208
- "minItems": 1,
209
- "description": "List of conditions that must all be met for the property to be active."
210
- }
211
- },
212
- "required": [
213
- "allMatch"
214
- ]
215
- }
216
- ]
217
- }
218
- }
219
- },
220
48
  {
221
49
  "if": {
222
50
  "properties": {
@@ -332,9 +160,6 @@
332
160
  "$id": "#/properties/property/choices/item/value",
333
161
  "type": "string",
334
162
  "description": "Value for a choice in a dropdown field. Stored in the XML."
335
- },
336
- "condition": {
337
- "$ref": "#/definitions/properties/allOf/0/items/allOf/1/properties/condition"
338
163
  }
339
164
  },
340
165
  "required": [
@@ -1031,11 +856,6 @@
1031
856
  "description": "List of keywords to help users find the template. Used in search and filtering, but not displayed in the UI.",
1032
857
  "default": []
1033
858
  },
1034
- "entriesVisible": {
1035
- "$id": "#/entriesVisible",
1036
- "type": "boolean",
1037
- "description": "Defines whether all property input fields are shown, even those normally hidden by the template."
1038
- },
1039
859
  "groups": {
1040
860
  "$id": "#/groups",
1041
861
  "type": "array",
@@ -1180,6 +1000,11 @@
1180
1000
  }
1181
1001
  ]
1182
1002
  }
1003
+ },
1004
+ "entriesVisible": {
1005
+ "$id": "#/entriesVisible",
1006
+ "type": "boolean",
1007
+ "description": "Defines whether all property input fields are shown, even those normally hidden by the template."
1183
1008
  }
1184
1009
  }
1185
1010
  }