Skip to content

Commit c54fb95

Browse files
committed
chore: formatting
1 parent b28d33f commit c54fb95

File tree

1 file changed

+62
-58
lines changed
  • packages/zeebe-element-templates-json-schema/src/defs/properties

1 file changed

+62
-58
lines changed
Lines changed: 62 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,76 @@
1-
{"allOf": [{
2-
"$comment": "For zeebe:adHoc property bindings: outputCollection and outputElement are optional; if one is present both must be present; they only make sense when a non-empty taskDefinition (type or retries) is configured. Cross-property + taskDefinition presence cannot be enforced at single-property schema level.",
3-
"if": {
4-
"properties": {
5-
"binding": {
1+
{
2+
"allOf": [
3+
{
4+
"$comment": "For zeebe:adHoc property bindings: outputCollection and outputElement are optional; if one is present both must be present; they only make sense when a non-empty taskDefinition (type or retries) is configured. Cross-property + taskDefinition presence cannot be enforced at single-property schema level.",
5+
"if": {
66
"properties": {
7-
"type": {
8-
"const": "zeebe:adHoc"
9-
},
10-
"property": {
11-
"enum": [
12-
"outputCollection",
13-
"outputElement"
7+
"binding": {
8+
"properties": {
9+
"type": {
10+
"const": "zeebe:adHoc"
11+
},
12+
"property": {
13+
"enum": [
14+
"outputCollection",
15+
"outputElement"
16+
]
17+
}
18+
},
19+
"required": [
20+
"type",
21+
"property"
1422
]
1523
}
1624
},
1725
"required": [
18-
"type",
19-
"property"
26+
"binding"
2027
]
28+
},
29+
"then": {
30+
"required": [
31+
"type"
32+
],
33+
"properties": {
34+
"type": {
35+
"enum": [
36+
"Hidden",
37+
"String",
38+
"Text",
39+
"Dropdown"
40+
]
41+
}
42+
}
2143
}
2244
},
23-
"required": [
24-
"binding"
25-
]
26-
},
27-
"then": {
28-
"required": [
29-
"type"
30-
],
31-
"properties": {
32-
"type": {
33-
"enum": [
34-
"Hidden",
35-
"String",
36-
"Text",
37-
"Dropdown"
38-
]
39-
}
40-
}
41-
}
42-
},
43-
{
44-
"if": {
45-
"properties": {
46-
"binding": {
47-
"properties": {
48-
"type": {
49-
"const": "zeebe:adHoc"
45+
{
46+
"if": {
47+
"properties": {
48+
"binding": {
49+
"properties": {
50+
"type": {
51+
"const": "zeebe:adHoc"
52+
},
53+
"property": {
54+
"const": "outputCollection"
55+
}
5056
},
51-
"property": {
52-
"const": "outputCollection"
53-
}
54-
},
57+
"required": [
58+
"type",
59+
"property"
60+
]
61+
}
62+
},
63+
"required": [
64+
"binding"
65+
]
66+
},
67+
"then": {
68+
"not": {
5569
"required": [
56-
"type",
57-
"property"
70+
"feel"
5871
]
5972
}
60-
},
61-
"required": [
62-
"binding"
63-
]
64-
},
65-
"then": {
66-
"not": {
67-
"required": [
68-
"feel"
69-
]
7073
}
7174
}
72-
}]}
75+
]
76+
}

0 commit comments

Comments
 (0)