summaryrefslogtreecommitdiff
path: root/schemas/config
diff options
context:
space:
mode:
authorAlexander Strizhak <[email protected]>2024-07-27 15:10:07 +0300
committerGitHub <[email protected]>2024-07-27 14:10:07 +0200
commit8375d31c49cdfe80a8f5d6d78df236947fd74d59 (patch)
treeb3e91ed11b62f5bbc8c7ddd55343dd123b339960 /schemas/config
parente6e45001fd145b5a5e775c6965c02bf9f8dbb31b (diff)
[#1982]: fix: `services.exec_timeout` schema definition
Diffstat (limited to 'schemas/config')
-rw-r--r--schemas/config/2.0.schema.json15
-rw-r--r--schemas/config/3.0.schema.json15
2 files changed, 18 insertions, 12 deletions
diff --git a/schemas/config/2.0.schema.json b/schemas/config/2.0.schema.json
index e3cdefee..9971849a 100644
--- a/schemas/config/2.0.schema.json
+++ b/schemas/config/2.0.schema.json
@@ -2232,13 +2232,16 @@
"Duration": {
"description": "Time duration",
"type": "string",
- "pattern": "^[0-9]+[ms]|[s,h]",
+ "pattern": "^([0-9]*(\\.[0-9]*)?(ms|h|m|s))+$",
"examples": [
- "10h",
- "1m",
- "1h",
- "30s",
- "300ms"
+ "1h",
+ "2.5h",
+ "2m",
+ ".2m",
+ "30s",
+ "30.03s",
+ "300ms",
+ "1h3m40s500ms"
]
},
"HostAndPortWithTCP": {
diff --git a/schemas/config/3.0.schema.json b/schemas/config/3.0.schema.json
index 98563373..f65e86cb 100644
--- a/schemas/config/3.0.schema.json
+++ b/schemas/config/3.0.schema.json
@@ -2359,14 +2359,17 @@
"Duration": {
"description": "Time duration",
"type": "string",
- "pattern": "^[0-9]+[ms]|[s,h]",
+ "pattern": "^([0-9]*(\\.[0-9]*)?(ms|h|m|s))+$",
"examples": [
- "10h",
- "1m",
- "1h",
+ "1h",
+ "2.5h",
+ "2m",
+ ".2m",
"30s",
- "300ms"
- ]
+ "30.03s",
+ "300ms",
+ "1h3m40s500ms"
+ ]
},
"HostAndPortWithTCP": {
"description": "Host and port with tcp:// prefix",