@camunda/element-templates-json-schema-shared 0.10.0 → 0.10.2

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.10.0",
3
+ "version": "0.10.2",
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": "ad75f695f0459880535544cfbd08bffb01609f41"
19
+ "gitHead": "e017d841eb2bcf3fbbb88ffe02b1caf874e73360"
20
20
  }
@@ -27,6 +27,30 @@
27
27
  },
28
28
  {
29
29
  "$ref": "condition.json"
30
+ },
31
+ {
32
+ "if": {
33
+ "properties": {
34
+ "type": {
35
+ "not": {
36
+ "const": "Number"
37
+ }
38
+ }
39
+ },
40
+ "required": [
41
+ "type"
42
+ ]
43
+ },
44
+ "then": {
45
+ "properties": {
46
+ "value": {
47
+ "type": [
48
+ "string",
49
+ "boolean"
50
+ ]
51
+ }
52
+ }
53
+ }
30
54
  }
31
55
  ],
32
56
  "properties": {
@@ -34,6 +58,7 @@
34
58
  "$id": "#/properties/property/value",
35
59
  "type": [
36
60
  "string",
61
+ "number",
37
62
  "boolean"
38
63
  ],
39
64
  "description": "The value of a control field."
@@ -63,36 +63,16 @@
63
63
  ]
64
64
  },
65
65
  "conditionDependingOnId": {
66
- "anyOf": [
67
- {
68
- "required": [
69
- "property"
70
- ],
71
- "properties": {
72
- "property": {
73
- "const": {
74
- "$data": "2/id"
75
- }
76
- }
77
- }
78
- },
79
- {
80
- "required": [
81
- "allMatch"
82
- ],
83
- "allMatch": {
84
- "contains": {
85
- "properties": {
86
- "property": {
87
- "const": {
88
- "$data": "2/id"
89
- }
90
- }
91
- }
92
- }
66
+ "required": [
67
+ "property"
68
+ ],
69
+ "properties": {
70
+ "property": {
71
+ "const": {
72
+ "$data": "2/id"
93
73
  }
94
74
  }
95
- ]
75
+ }
96
76
  }
97
77
  },
98
78
  "allOf": [
@@ -114,31 +94,6 @@
114
94
  "required": [ "condition" ]
115
95
  }
116
96
  }
117
- },
118
- {
119
- "$comment": "property#condition should not depend on property#id",
120
- "if": {
121
- "required": [
122
- "id",
123
- "choices"
124
- ],
125
- "properties": {
126
- "choices": {
127
- "contains": {
128
- "properties": {
129
- "condition": {
130
- "$ref": "#/definitions/conditionDependingOnId"
131
- }
132
- }
133
- }
134
- }
135
- }
136
- },
137
- "then": {
138
- "not": {
139
- "required": [ "choices" ]
140
- }
141
- }
142
97
  }
143
98
  ],
144
99
  "properties": {