@camunda/element-templates-json-schema-shared 0.2.0 → 0.3.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-shared",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Shared schema definitions used within element-templates-json-schema",
5
5
  "files": [
6
6
  "src"
@@ -16,5 +16,5 @@
16
16
  "camunda"
17
17
  ],
18
18
  "license": "MIT",
19
- "gitHead": "f4b102f0cdb536cba89e1dbfbe8bd3b58b75a224"
19
+ "gitHead": "00ac9b421ae95098729fbf72f99988690f0800ea"
20
20
  }
@@ -39,7 +39,7 @@
39
39
  "items": {
40
40
  "$id": "#/appliesTo/items",
41
41
  "type": "string",
42
- "pattern": "^(.*?:)",
42
+ "pattern": "^[\\w\\d]+:[\\w\\d]+$",
43
43
  "errorMessage": {
44
44
  "pattern": "invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""
45
45
  },
@@ -50,6 +50,27 @@
50
50
  ]
51
51
  }
52
52
  },
53
+ "elementType": {
54
+ "$id": "#/elementType",
55
+ "type": "object",
56
+ "description": "The BPMN type the element will be transformed into.",
57
+ "default": {},
58
+ "properties": {
59
+ "value": {
60
+ "$id": "#/elementType/value",
61
+ "type": "string",
62
+ "pattern": "^[\\w\\d]+:[\\w\\d]+$",
63
+ "errorMessage": {
64
+ "pattern": "invalid item for \"elementType\", should contain namespaced property, example: \"bpmn:Task\""
65
+ },
66
+ "allOf": [
67
+ {
68
+ "$ref": "examples.json#/elementType"
69
+ }
70
+ ]
71
+ }
72
+ }
73
+ },
53
74
  "metadata": {
54
75
  "$id": "#/metadata",
55
76
  "type": "object",
@@ -63,6 +84,14 @@
63
84
  },
64
85
  "groups": {
65
86
  "$ref": "groups.json"
87
+ },
88
+ "documentationRef": {
89
+ "$id": "#/documentaionRef",
90
+ "type": "string",
91
+ "pattern": "^(https|http)://.*",
92
+ "errorMessage": {
93
+ "pattern": "Malformed documentation URL, must match \"^(https|http)://.*\""
94
+ }
66
95
  }
67
96
  },
68
97
  "errorMessage": {
@@ -35,5 +35,14 @@
35
35
  "notEmpty": true
36
36
  }
37
37
  ]
38
+ },
39
+ "elementType": {
40
+ "examples": [
41
+ "bpmn:ServiceTask",
42
+ "bpmn:UserTask",
43
+ "bpmn:StartEvent",
44
+ "bpmn:ExclusiveGateway",
45
+ "bpmn:ParallelGateway"
46
+ ]
38
47
  }
39
48
  }
package/CHANGELOG.md DELETED
@@ -1,15 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to [@camunda/element-templates-json-schema-shared](https://github.com/camunda/element-templates-json-schema/packages/element-templates-json-schema-shared) are documented here. We use [semantic versioning](http://semver.org/) for releases.
4
-
5
- ## Unreleased
6
-
7
- ___Note:__ Yet to be released changes appear here._
8
-
9
- ## 0.2.0
10
-
11
- * `FEAT`: provide better editor annotations ([#45](https://github.com/camunda/element-templates-json-schema/pull/45))
12
-
13
- ## 0.1.0
14
-
15
- * `FEAT`: initial version :tada: