Skip to content

Commit 079ed02

Browse files
committed
feat: do not run validation on unrelated property
1 parent ec945f7 commit 079ed02

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

packages/zeebe-element-templates-json-schema/src/defs/template/bindingType.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,14 @@
8282
"properties": {
8383
"binding": {
8484
"properties": {
85+
"type": {
86+
"enum": [
87+
"zeebe:calledDecision",
88+
"zeebe:calledElement",
89+
"zeebe:formDefinition",
90+
"zeebe:linkedResource"
91+
]
92+
},
8593
"property": {
8694
"const": "versionTag"
8795
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
export const template = {
2+
'name': 'AdditionalProperty',
3+
'id': 'com.camunda.example.AdditionalProperty',
4+
'appliesTo': [
5+
'bpmn:Task'
6+
],
7+
'properties': [
8+
{
9+
'type': 'Hidden',
10+
'binding': {
11+
'type': 'property',
12+
'name': 'foo',
13+
'property': 'versionTag' // This property is not used and should not cause an error
14+
}
15+
}
16+
]
17+
};
18+
19+
export const errors = null;

packages/zeebe-element-templates-json-schema/test/spec/validationSpec.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,11 @@ describe('validation', function() {
586586
'versionTag-invalid-input-type'
587587
];
588588

589+
describe('additional property', function() {
590+
591+
it('binding-type/additional-property');
592+
});
593+
589594
describe('called decision', function() {
590595

591596
for (const testCase of testCases) {

0 commit comments

Comments
 (0)