-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(zeebe): validate linkedResource templates
- Loading branch information
Showing
4 changed files
with
151 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,11 @@ All notable changes to [element-templates-validator](https://github.com/bpmn-io/ | |
|
||
___Note:__ Yet to be released changes appear here._ | ||
|
||
## 2.3.0 | ||
|
||
* `FEAT`: support `linkedElements` property for zeebe templates ([#153](https://github.com/camunda/element-templates-json-schema/pull/153)) | ||
* `DEPS`: update to `@camunda/[email protected]` | ||
|
||
## 2.2.0 | ||
|
||
* `FEAT`: support `engines` property for zeebe templates ([#146](https://github.com/camunda/element-templates-json-schema/issues/146), [#152](https://github.com/camunda/element-templates-json-schema/pull/152)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
[ | ||
{ | ||
"$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json", | ||
"name": "linkedResource missing linkName", | ||
"id": "linkedResource-missing-linkName", | ||
"version": 1, | ||
"appliesTo": [ | ||
"bpmn:Task" | ||
], | ||
"elementType": { | ||
"value": "bpmn:ServiceTask" | ||
}, | ||
"properties": [ | ||
{ | ||
"type": "String", | ||
"binding": { | ||
"type": "zeebe:linkedResource", | ||
"property": "resourceType" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json", | ||
"name": "linkedResource missing linkName", | ||
"id": "linkedResource-invalid-binding", | ||
"version": 1, | ||
"appliesTo": [ | ||
"bpmn:Task" | ||
], | ||
"elementType": { | ||
"value": "bpmn:ServiceTask" | ||
}, | ||
"properties": [ | ||
{ | ||
"type": "String", | ||
"binding": { | ||
"type": "zeebe:linkedResource", | ||
"linkName": "persistedLink", | ||
"property": "invalidProperty" | ||
} | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
[ | ||
{ | ||
"$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json", | ||
"name": "linkedResource", | ||
"id": "linkedResource", | ||
"version": 1, | ||
"appliesTo": [ | ||
"bpmn:Task" | ||
], | ||
"elementType": { | ||
"value": "bpmn:ServiceTask" | ||
}, | ||
"properties": [ | ||
{ | ||
"type": "String", | ||
"value": "RPA", | ||
"binding": { | ||
"type": "zeebe:linkedResource", | ||
"linkName": "persistedLink", | ||
"property": "resourceType" | ||
} | ||
}, | ||
{ | ||
"type": "String", | ||
"feel": "optional", | ||
"binding": { | ||
"type": "zeebe:linkedResource", | ||
"linkName": "persistedLink", | ||
"property": "resourceId" | ||
} | ||
}, | ||
{ | ||
"type": "String", | ||
"value": "versionTag", | ||
"binding": { | ||
"type": "zeebe:linkedResource", | ||
"linkName": "persistedLink", | ||
"property": "bindingType" | ||
} | ||
}, | ||
{ | ||
"type": "String", | ||
"value": "v123", | ||
"binding": { | ||
"type": "zeebe:linkedResource", | ||
"linkName": "persistedLink", | ||
"property": "versionTag" | ||
} | ||
}, | ||
{ | ||
"type": "String", | ||
"value": "RPA", | ||
"binding": { | ||
"type": "zeebe:linkedResource", | ||
"linkName": "removedLink", | ||
"property": "resourceType" | ||
} | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters