From 8356e1aba107cff1ec03946b10912895240f5ea9 Mon Sep 17 00:00:00 2001 From: Simon L Date: Mon, 1 May 2023 19:06:13 +0200 Subject: [PATCH] updaate regex for some values in containers schema Signed-off-by: Simon L --- php/containers-schema.json | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/php/containers-schema.json b/php/containers-schema.json index 468ae378..919f60e0 100644 --- a/php/containers-schema.json +++ b/php/containers-schema.json @@ -55,7 +55,7 @@ }, "internal_port": { "type": "string", - "pattern": "^([0-9]{1,5})?(host)?(%[A-Z_]+%)?$" + "pattern": "^(([0-9]{1,5})|host|(%[A-Z_]+%))$" }, "stop_grace_period": { "type": "integer" @@ -77,9 +77,7 @@ }, "protocol": { "type": "string", - "pattern": "^(tcp)?(udp)?$", - "minlength": 3, - "maxlength": 3 + "pattern": "^(tcp|udp)$" } } } @@ -117,14 +115,11 @@ "properties": { "destination": { "type": "string", - "pattern": "^(/[a-z_/.-]+)?(%[A-Z_]+%)?$", - "minlength": 2 + "pattern": "^((/[a-z_/.-]+)|(%[A-Z_]+%))$" }, "source": { "type": "string", - "pattern": "^([a-z_]+)?(%[A-Z_]+%)?$", - "minlength": 2 - }, + "pattern": "^(([a-z_]+)|(%[A-Z_]+%))$" }, "writeable": { "type": "boolean" }