Skip to content

Commit 2a332c8

Browse files
author
Tihomir Surdilovic
authored
fix for schemas (#313) (#314)
Signed-off-by: Tihomir Surdilovic <[email protected]>
1 parent 4d9069b commit 2a332c8

File tree

4 files changed

+104
-42
lines changed

4 files changed

+104
-42
lines changed

schema/events.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"type": "object",
1818
"$ref": "#/definitions/eventdef"
1919
},
20+
"additionalItems": false,
2021
"minItems": 1
2122
}
2223
]
@@ -57,13 +58,15 @@
5758
"items": {
5859
"type": "object",
5960
"$ref": "#/definitions/correlationDef"
60-
}
61+
},
62+
"additionalItems": false
6163
},
6264
"metadata": {
6365
"$ref": "common.json#/definitions/metadata",
6466
"description": "Metadata information"
6567
}
6668
},
69+
"additionalProperties": false,
6770
"if": {
6871
"properties": {
6972
"kind": {
@@ -100,6 +103,7 @@
100103
"minLength": 1
101104
}
102105
},
106+
"additionalProperties": false,
103107
"required": [
104108
"contextAttributeName"
105109
]

schema/functions.json

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"type": "object",
1818
"$ref": "#/definitions/function"
1919
},
20+
"additionalItems": false,
2021
"minItems": 1
2122
}
2223
]
@@ -49,6 +50,7 @@
4950
"default": "rest"
5051
}
5152
},
53+
"additionalProperties": false,
5254
"required": [
5355
"name",
5456
"operation"

schema/retries.json

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"type": "object",
1818
"$ref": "#/definitions/retrydef"
1919
},
20+
"additionalItems": false,
2021
"minItems": 1
2122
}
2223
]
@@ -74,6 +75,7 @@
7475
"description": "If float type, maximum amount of random time added or subtracted from the delay between each retry relative to total delay (between 0 and 1). If string type, absolute maximum amount of random time added or subtracted from the delay between each retry (ISO 8601 duration format)"
7576
}
7677
},
78+
"additionalProperties": false,
7779
"required": [
7880
"name",
7981
"maxAttempts"

0 commit comments

Comments
 (0)