summaryrefslogtreecommitdiff
path: root/schemas
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2023-01-11 17:19:10 +0100
committerValery Piashchynski <[email protected]>2023-01-11 17:19:10 +0100
commit828be6975b55e6527256f7270d12b8e5bdc51c20 (patch)
tree0f6fd46b3e050a750c9acec3ad9bb0a0c80e6f1e /schemas
parent8714dd99e8f3b55aef0b552ad40ce496624f308e (diff)
fix: schema types
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'schemas')
-rw-r--r--schemas/config/2.0.schema.json36
1 files changed, 12 insertions, 24 deletions
diff --git a/schemas/config/2.0.schema.json b/schemas/config/2.0.schema.json
index 6ad9b1fb..55c46823 100644
--- a/schemas/config/2.0.schema.json
+++ b/schemas/config/2.0.schema.json
@@ -1476,7 +1476,7 @@
"type": "boolean",
"default": false
},
- "queue_headers" : {
+ "queue_headers": {
"description": "Queue declare args, associated array (hashmap, key:val)",
"$ref": "#/definitions/Hashmap",
"default": null
@@ -2040,11 +2040,11 @@
"default": 1
},
"min_retry_backoff": {
- "type": "integer",
+ "$ref": "#/definitions/Duration",
"default": 0
},
"max_retry_backoff": {
- "type": "integer",
+ "$ref": "#/definitions/Duration",
"default": 0
},
"pool_size": {
@@ -2110,7 +2110,7 @@
},
"exec_timeout": {
"description": "Allowed time before stop",
- "type": "integer",
+ "type": "string",
"$ref": "#/definitions/Duration"
},
"remain_after_exit": {
@@ -2231,26 +2231,14 @@
},
"Duration": {
"description": "Time duration",
- "anyOf": [
- {
- "description": "Duration as a string. Valid time units are 'ns', 'us' (or 'µs'), 'ms', 's', 'm', 'h'",
- "type": "string",
- "examples": [
- "10h",
- "1m",
- "1h10m10s",
- "30s",
- "300ms",
- "1µs",
- "1us"
- ],
- "minLength": 2
- },
- {
- "description": "Duration in nanoseconds",
- "type": "integer",
- "minimum": 0
- }
+ "type": "string",
+ "pattern": "^[0-9]+[ms]|[s,h]",
+ "examples": [
+ "10h",
+ "1m",
+ "1h",
+ "30s",
+ "300ms"
]
},
"HostAndPortWithTCP": {