@camunda/element-templates-json-schema-shared 0.4.0-alpha.0 → 0.4.1
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.4.
|
|
3
|
+
"version": "0.4.1",
|
|
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": "
|
|
19
|
+
"gitHead": "92ee15b12a90b2ac8c9cc81108efc759d79b8f07"
|
|
20
20
|
}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"path": [
|
|
4
|
+
"definitions",
|
|
5
|
+
"properties",
|
|
6
|
+
"allOf",
|
|
7
|
+
0,
|
|
8
|
+
"items",
|
|
9
|
+
"allOf",
|
|
10
|
+
0,
|
|
11
|
+
"then"
|
|
12
|
+
],
|
|
13
|
+
"errorMessage": "must provide choices=[] with \"Dropdown\" type"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"path": [
|
|
17
|
+
"definitions",
|
|
18
|
+
"properties",
|
|
19
|
+
"allOf",
|
|
20
|
+
0,
|
|
21
|
+
"items",
|
|
22
|
+
"properties",
|
|
23
|
+
"choices",
|
|
24
|
+
"items"
|
|
25
|
+
],
|
|
26
|
+
"errorMessage": {
|
|
27
|
+
"required": "{ name, value } must be specified for \"Dropdown\" choices"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"path": [
|
|
32
|
+
"definitions",
|
|
33
|
+
"properties",
|
|
34
|
+
"allOf",
|
|
35
|
+
1,
|
|
36
|
+
"items",
|
|
37
|
+
"properties",
|
|
38
|
+
"binding",
|
|
39
|
+
"allOf",
|
|
40
|
+
0,
|
|
41
|
+
"then"
|
|
42
|
+
],
|
|
43
|
+
"errorMessage": "property.binding ${0/type} requires name"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"path": [
|
|
47
|
+
"definitions",
|
|
48
|
+
"template",
|
|
49
|
+
"allOf",
|
|
50
|
+
0,
|
|
51
|
+
"properties",
|
|
52
|
+
"appliesTo",
|
|
53
|
+
"items"
|
|
54
|
+
],
|
|
55
|
+
"errorMessage": {
|
|
56
|
+
"pattern": "invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"path": [
|
|
61
|
+
"definitions",
|
|
62
|
+
"template",
|
|
63
|
+
"allOf",
|
|
64
|
+
0,
|
|
65
|
+
"properties",
|
|
66
|
+
"elementType"
|
|
67
|
+
],
|
|
68
|
+
"errorMessage": {
|
|
69
|
+
"required": {
|
|
70
|
+
"value": "missing elementType value"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"path": [
|
|
76
|
+
"definitions",
|
|
77
|
+
"template",
|
|
78
|
+
"allOf",
|
|
79
|
+
0,
|
|
80
|
+
"properties",
|
|
81
|
+
"elementType",
|
|
82
|
+
"properties",
|
|
83
|
+
"value"
|
|
84
|
+
],
|
|
85
|
+
"errorMessage": {
|
|
86
|
+
"pattern": "invalid item for \"elementType\", should contain namespaced property, example: \"bpmn:Task\""
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"path": [
|
|
91
|
+
"definitions",
|
|
92
|
+
"template",
|
|
93
|
+
"allOf",
|
|
94
|
+
"0",
|
|
95
|
+
"properties",
|
|
96
|
+
"groups",
|
|
97
|
+
"items"
|
|
98
|
+
],
|
|
99
|
+
"errorMessage": {
|
|
100
|
+
"required": {
|
|
101
|
+
"id": "missing id for group \"${0#}\"",
|
|
102
|
+
"label": "missing label for group \"${0#}\""
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"path": [
|
|
108
|
+
"definitions",
|
|
109
|
+
"template",
|
|
110
|
+
"allOf",
|
|
111
|
+
0,
|
|
112
|
+
"properties",
|
|
113
|
+
"documentationRef"
|
|
114
|
+
],
|
|
115
|
+
"errorMessage": {
|
|
116
|
+
"pattern": "Malformed documentation URL, must match \"^(https|http)://.*\""
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"path": [
|
|
121
|
+
"definitions",
|
|
122
|
+
"template",
|
|
123
|
+
"allOf",
|
|
124
|
+
0
|
|
125
|
+
],
|
|
126
|
+
"errorMessage": {
|
|
127
|
+
"required": {
|
|
128
|
+
"name": "missing template name",
|
|
129
|
+
"id": "missing template id",
|
|
130
|
+
"appliesTo": "missing appliesTo=[]",
|
|
131
|
+
"properties": "missing properties=[]"
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"path": [
|
|
137
|
+
"definitions",
|
|
138
|
+
"properties",
|
|
139
|
+
"allOf",
|
|
140
|
+
0,
|
|
141
|
+
"items",
|
|
142
|
+
"properties",
|
|
143
|
+
"condition"
|
|
144
|
+
],
|
|
145
|
+
"errorMessage": {
|
|
146
|
+
"required": {
|
|
147
|
+
"property": "missing property name for condition"
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
]
|
|
@@ -22,8 +22,7 @@
|
|
|
22
22
|
"then": {
|
|
23
23
|
"required": [
|
|
24
24
|
"choices"
|
|
25
|
-
]
|
|
26
|
-
"errorMessage": "must provide choices=[] with \"Dropdown\" type"
|
|
25
|
+
]
|
|
27
26
|
}
|
|
28
27
|
}
|
|
29
28
|
],
|
|
@@ -84,8 +83,7 @@
|
|
|
84
83
|
"required": [
|
|
85
84
|
"value",
|
|
86
85
|
"name"
|
|
87
|
-
]
|
|
88
|
-
"errorMessage": "{ name, value } must be specified for \"Dropdown\" choices"
|
|
86
|
+
]
|
|
89
87
|
}
|
|
90
88
|
},
|
|
91
89
|
"constraints": {
|
package/src/defs/base.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"version": {
|
|
25
25
|
"$id": "#/version",
|
|
26
|
-
"type": "
|
|
26
|
+
"type": "integer",
|
|
27
27
|
"description": "Optional version of the template. If you add a version to a template it will be considered unique based on its ID and version. Two templates can have the same ID if their version is different."
|
|
28
28
|
},
|
|
29
29
|
"isDefault": {
|
|
@@ -40,9 +40,6 @@
|
|
|
40
40
|
"$id": "#/appliesTo/items",
|
|
41
41
|
"type": "string",
|
|
42
42
|
"pattern": "^[\\w\\d]+:[\\w\\d]+$",
|
|
43
|
-
"errorMessage": {
|
|
44
|
-
"pattern": "invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""
|
|
45
|
-
},
|
|
46
43
|
"allOf": [
|
|
47
44
|
{
|
|
48
45
|
"$ref": "examples.json#/appliesTo"
|
|
@@ -58,19 +55,11 @@
|
|
|
58
55
|
"required": [
|
|
59
56
|
"value"
|
|
60
57
|
],
|
|
61
|
-
"errorMessage": {
|
|
62
|
-
"required": {
|
|
63
|
-
"value": "missing elementType value"
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
58
|
"properties": {
|
|
67
59
|
"value": {
|
|
68
60
|
"$id": "#/elementType/value",
|
|
69
61
|
"type": "string",
|
|
70
62
|
"pattern": "^[\\w\\d]+:[\\w\\d]+$",
|
|
71
|
-
"errorMessage": {
|
|
72
|
-
"pattern": "invalid item for \"elementType\", should contain namespaced property, example: \"bpmn:Task\""
|
|
73
|
-
},
|
|
74
63
|
"allOf": [
|
|
75
64
|
{
|
|
76
65
|
"$ref": "examples.json#/elementType"
|
|
@@ -94,20 +83,9 @@
|
|
|
94
83
|
"$ref": "groups.json"
|
|
95
84
|
},
|
|
96
85
|
"documentationRef": {
|
|
97
|
-
"$id": "#/
|
|
86
|
+
"$id": "#/documentationRef",
|
|
98
87
|
"type": "string",
|
|
99
|
-
"pattern": "^(https|http)://.*"
|
|
100
|
-
"errorMessage": {
|
|
101
|
-
"pattern": "Malformed documentation URL, must match \"^(https|http)://.*\""
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
"errorMessage": {
|
|
106
|
-
"required": {
|
|
107
|
-
"name": "missing template name",
|
|
108
|
-
"id": "missing template id",
|
|
109
|
-
"appliesTo": "missing appliesTo=[]",
|
|
110
|
-
"properties": "missing properties=[]"
|
|
88
|
+
"pattern": "^(https|http)://.*"
|
|
111
89
|
}
|
|
112
90
|
}
|
|
113
91
|
}
|
package/src/defs/condition.json
CHANGED
package/src/defs/groups.json
CHANGED