@camunda/zeebe-element-templates-json-schema 0.30.0 → 0.31.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/LICENSE +21 -21
- package/README.md +53 -53
- package/package.json +2 -2
- package/resources/schema.json +14 -1
- package/resources/test.json +17 -0
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2020 camunda Services GmbH
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 camunda Services GmbH
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
# @camunda/zeebe-element-templates-json-schema
|
|
2
|
-
|
|
3
|
-
[](https://github.com/camunda/element-templates-json-schema/actions?query=workflow%3ACI)
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
JSON Schema for (Zeebe) Element Templates. The schema is built on top of and validated by [`json-schema@draft-07`](https://json-schema.org/draft-07/json-schema-release-notes.html).
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
## Usage
|
|
11
|
-
|
|
12
|
-
Set the `$schema` attribute to reference the [JSON Schema definition](./resources/schema.json).
|
|
13
|
-
|
|
14
|
-
```js
|
|
15
|
-
{
|
|
16
|
-
"$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json",
|
|
17
|
-
"name": "My Service Worker",
|
|
18
|
-
"id": "com.example.ServiceWorker",
|
|
19
|
-
"appliesTo": [ "bpmn:ServiceTask" ],
|
|
20
|
-
"properties": []
|
|
21
|
-
}
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
You can also use a specific version.
|
|
25
|
-
|
|
26
|
-
```js
|
|
27
|
-
"$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema@0.1.0/resources/schema.json"
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
## Build and Run
|
|
31
|
-
|
|
32
|
-
Prepare the project by installing all dependencies:
|
|
33
|
-
|
|
34
|
-
```sh
|
|
35
|
-
npm install
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
Bundle [the source schema files](./src) together
|
|
39
|
-
|
|
40
|
-
```sh
|
|
41
|
-
npm run build
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
Execute the following command to run the generated schema against the tests
|
|
45
|
-
|
|
46
|
-
```sh
|
|
47
|
-
npm run test
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
## License
|
|
51
|
-
|
|
52
|
-
MIT
|
|
53
|
-
|
|
1
|
+
# @camunda/zeebe-element-templates-json-schema
|
|
2
|
+
|
|
3
|
+
[](https://github.com/camunda/element-templates-json-schema/actions?query=workflow%3ACI)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
JSON Schema for (Zeebe) Element Templates. The schema is built on top of and validated by [`json-schema@draft-07`](https://json-schema.org/draft-07/json-schema-release-notes.html).
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
Set the `$schema` attribute to reference the [JSON Schema definition](./resources/schema.json).
|
|
13
|
+
|
|
14
|
+
```js
|
|
15
|
+
{
|
|
16
|
+
"$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json",
|
|
17
|
+
"name": "My Service Worker",
|
|
18
|
+
"id": "com.example.ServiceWorker",
|
|
19
|
+
"appliesTo": [ "bpmn:ServiceTask" ],
|
|
20
|
+
"properties": []
|
|
21
|
+
}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
You can also use a specific version.
|
|
25
|
+
|
|
26
|
+
```js
|
|
27
|
+
"$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema@0.1.0/resources/schema.json"
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Build and Run
|
|
31
|
+
|
|
32
|
+
Prepare the project by installing all dependencies:
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
npm install
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Bundle [the source schema files](./src) together
|
|
39
|
+
|
|
40
|
+
```sh
|
|
41
|
+
npm run build
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Execute the following command to run the generated schema against the tests
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
npm run test
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## License
|
|
51
|
+
|
|
52
|
+
MIT
|
|
53
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/zeebe-element-templates-json-schema",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.31.0",
|
|
4
4
|
"description": "JSON Schema for (Zeebe) Element Templates",
|
|
5
5
|
"files": [
|
|
6
6
|
"resources"
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"camunda"
|
|
27
27
|
],
|
|
28
28
|
"license": "MIT",
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "51d8cc520d00fc9d9bc23e5224a7167cf002cbd3"
|
|
30
30
|
}
|
package/resources/schema.json
CHANGED
|
@@ -682,7 +682,19 @@
|
|
|
682
682
|
"then": {
|
|
683
683
|
"properties": {
|
|
684
684
|
"value": {
|
|
685
|
-
"
|
|
685
|
+
"oneOf": [
|
|
686
|
+
{
|
|
687
|
+
"type": "string",
|
|
688
|
+
"pattern": "^="
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
"type": "string",
|
|
692
|
+
"not": {
|
|
693
|
+
"pattern": "^="
|
|
694
|
+
},
|
|
695
|
+
"deprecated": true
|
|
696
|
+
}
|
|
697
|
+
]
|
|
686
698
|
}
|
|
687
699
|
}
|
|
688
700
|
}
|
|
@@ -1809,6 +1821,7 @@
|
|
|
1809
1821
|
"properties": {
|
|
1810
1822
|
"property": {
|
|
1811
1823
|
"enum": [
|
|
1824
|
+
"activeElementsCollection",
|
|
1812
1825
|
"outputCollection",
|
|
1813
1826
|
"outputElement"
|
|
1814
1827
|
]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Ad hoc",
|
|
3
|
+
"id": "com.camunda.example.completionCondition",
|
|
4
|
+
"appliesTo": [
|
|
5
|
+
"bpmn:AdHocSubProcess"
|
|
6
|
+
],
|
|
7
|
+
"properties": [
|
|
8
|
+
{
|
|
9
|
+
"type": "String",
|
|
10
|
+
"feel": "required",
|
|
11
|
+
"binding": {
|
|
12
|
+
"type": "zeebe:taskDefinition",
|
|
13
|
+
"property": "type"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|