summaryrefslogtreecommitdiff
path: root/schemas
diff options
context:
space:
mode:
authorKajetan <[email protected]>2023-11-07 21:56:46 +0100
committerKajetan <[email protected]>2023-11-07 21:56:46 +0100
commit9be224dcd66d8a09cf2ae2f2c11bb8d220765c5d (patch)
tree220b56031956d6274b11e3afe692dab8a4253d33 /schemas
parentf4da11b7bcff3bd2ca0c13606cd735ce2a23b269 (diff)
Schema regex improvements
Diffstat (limited to 'schemas')
-rw-r--r--schemas/config/2.0.schema.json4
-rw-r--r--schemas/config/3.0.schema.json4
2 files changed, 4 insertions, 4 deletions
diff --git a/schemas/config/2.0.schema.json b/schemas/config/2.0.schema.json
index 4ee0fb71..e3cdefee 100644
--- a/schemas/config/2.0.schema.json
+++ b/schemas/config/2.0.schema.json
@@ -2244,7 +2244,7 @@
"HostAndPortWithTCP": {
"description": "Host and port with tcp:// prefix",
"type": "string",
- "pattern": "^(((tcp:\/\/[0-9a-zA-Z_.-]+|)|\\${([^}]+)}):([0-9]{1,5}||\\${([^}]+)}))|\\${([^}]+)}$",
+ "pattern": "^(((tcp://[0-9a-zA-Z_.-]+|)|\\$\\{([^}]+)\\}):([0-9]{1,5}||\\$\\{([^}]+)\\}))|\\$\\{([^}]+)\\}$",
"examples": [
"tcp://127.0.0.1:443",
"${TCP:-tcp://127.0.0.1:443}",
@@ -2254,7 +2254,7 @@
"HostAndPort": {
"description": "Host and port",
"type": "string",
- "pattern": "^(([0-9a-zA-Z_.-]+|\\${([^}]+)}):([0-9]{1,5}|\\${([^}]+)})|\\${([^}]+)})$",
+ "pattern": "^((([0-9a-zA-Z_.-]+|)|\\$\\{([^}]+)\\}):([0-9]{1,5})|\\$\\{([^}]+)\\})|\\$\\{([^}]+)\\}$",
"examples": [
"127.0.0.1:443",
":8080",
diff --git a/schemas/config/3.0.schema.json b/schemas/config/3.0.schema.json
index fe8abd4d..0d62a6f1 100644
--- a/schemas/config/3.0.schema.json
+++ b/schemas/config/3.0.schema.json
@@ -2362,7 +2362,7 @@
"HostAndPortWithTCP": {
"description": "Host and port with tcp:// prefix",
"type": "string",
- "pattern": "^(((tcp:\/\/[0-9a-zA-Z_.-]+|)|\\${([^}]+)}):([0-9]{1,5}||\\${([^}]+)}))|\\${([^}]+)}$",
+ "pattern": "^(((tcp://[0-9a-zA-Z_.-]+|)|\\$\\{([^}]+)\\}):([0-9]{1,5}||\\$\\{([^}]+)\\}))|\\$\\{([^}]+)\\}$",
"examples": [
"tcp://127.0.0.1:443",
"${TCP:-tcp://127.0.0.1:443}",
@@ -2372,7 +2372,7 @@
"HostAndPort": {
"description": "Host and port",
"type": "string",
- "pattern": "^(([0-9a-zA-Z_.-]+|\\${([^}]+)}):([0-9]{1,5}|\\${([^}]+)})|\\${([^}]+)})$",
+ "pattern": "^((([0-9a-zA-Z_.-]+|)|\\$\\{([^}]+)\\}):([0-9]{1,5})|\\$\\{([^}]+)\\})|\\$\\{([^}]+)\\}$",
"examples": [
"127.0.0.1:443",
":8080",