@camunda/element-templates-json-schema-shared 0.5.0 → 0.7.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.5.0",
3
+ "version": "0.7.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": "4ce1e13b87008fb65b4b242c7a9f99e5c835892a"
19
+ "gitHead": "ba2fc757776278d7cc47dff43b3a6175232343b3"
20
20
  }
@@ -140,6 +140,8 @@
140
140
  0,
141
141
  "items",
142
142
  "properties",
143
+ "condition",
144
+ "definitions",
143
145
  "condition"
144
146
  ],
145
147
  "errorMessage": {
@@ -31,6 +31,24 @@
31
31
  "type": "boolean",
32
32
  "description": "Indicates whether the element template is a default template."
33
33
  },
34
+ "deprecated": {
35
+ "$id": "#/deprecated",
36
+ "type": ["boolean", "object"],
37
+ "description": "Indicates whether the element template is deprecated.",
38
+ "properties": {
39
+ "message": {
40
+ "$id": "#/deprecated/message",
41
+ "type": "string",
42
+ "description": "Optional message to describe migration path."
43
+ },
44
+ "documentationRef": {
45
+ "$id": "#/deprecated/documentationRef",
46
+ "type": "string",
47
+ "pattern": "^(https|http)://.*",
48
+ "description": "Optional link to migration documentation."
49
+ }
50
+ }
51
+ },
34
52
  "appliesTo": {
35
53
  "$id": "#/appliesTo",
36
54
  "type": "array",
@@ -1,57 +1,82 @@
1
1
  {
2
2
  "$id": "#/condition",
3
3
  "type": "object",
4
- "description": "Condition to activate the binding.",
4
+ "description": "Condition(s) to activate the binding.",
5
5
  "allOf": [
6
6
  {
7
7
  "$ref": "examples.json#/condition"
8
8
  }
9
9
  ],
10
- "required": [
11
- "property"
12
- ],
13
- "properties": {
14
- "type": {
15
- "$id": "#/condition/type",
16
- "const": "simple",
17
- "description": "The type of the condition.",
18
- "default": "simple"
19
- },
20
- "property": {
21
- "$id": "#/condition/property",
22
- "type": "string",
23
- "description": "The id of the property to check."
24
- }
25
- },
26
- "oneOf": [
27
- {
10
+ "definitions": {
11
+ "condition": {
12
+ "type": "object",
13
+ "required": [
14
+ "property"
15
+ ],
28
16
  "properties": {
29
- "equals": {
30
- "type": [
31
- "string",
32
- "number",
33
- "boolean"
34
- ]
17
+ "type": {
18
+ "$id": "#/condition/type",
19
+ "const": "simple",
20
+ "description": "The type of the condition.",
21
+ "default": "simple"
22
+ },
23
+ "property": {
24
+ "$id": "#/condition/property",
25
+ "type": "string",
26
+ "description": "The id of the property to check."
35
27
  }
36
28
  },
37
- "required": [
38
- "equals"
29
+ "oneOf": [
30
+ {
31
+ "properties": {
32
+ "equals": {
33
+ "type": [
34
+ "string",
35
+ "number",
36
+ "boolean"
37
+ ]
38
+ }
39
+ },
40
+ "required": [
41
+ "equals"
42
+ ]
43
+ },
44
+ {
45
+ "properties": {
46
+ "oneOf": {
47
+ "type": "array",
48
+ "items": {
49
+ "type": [
50
+ "string",
51
+ "number"
52
+ ]
53
+ }
54
+ }
55
+ },
56
+ "required": [
57
+ "oneOf"
58
+ ]
59
+ }
39
60
  ]
61
+ }
62
+ },
63
+ "oneOf": [
64
+ {
65
+ "$ref": "#/definitions/condition"
40
66
  },
41
67
  {
42
68
  "properties": {
43
- "oneOf": {
69
+ "allMatch": {
70
+ "$id": "#/allMatch",
44
71
  "type": "array",
45
72
  "items": {
46
- "type": [
47
- "string",
48
- "number"
49
- ]
50
- }
73
+ "$ref": "#/definitions/condition"
74
+ },
75
+ "minItems": 1
51
76
  }
52
77
  },
53
78
  "required": [
54
- "oneOf"
79
+ "allMatch"
55
80
  ]
56
81
  }
57
82
  ]
@@ -56,6 +56,20 @@
56
56
  "type": "simple",
57
57
  "property": "httpMethod",
58
58
  "oneOf": [ "POST", "PUT", "DELETE" ]
59
+ },
60
+ {
61
+ "allMatch": [
62
+ {
63
+ "type": "simple",
64
+ "property": "authType",
65
+ "equals": "Basic"
66
+ },
67
+ {
68
+ "type": "simple",
69
+ "property": "httpMethod",
70
+ "oneOf": [ "POST", "PUT", "DELETE" ]
71
+ }
72
+ ]
59
73
  }
60
74
  ]
61
75
  }