From 03504079dae98dde1487fc55ec9da954b5afa7a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Sun, 24 Sep 2023 16:08:03 +0200 Subject: [PATCH] schemas: Fix regexes: name_and_permission to allow __KEY__ and non-complete rwx syntax ; path_absolute to allow __KEY__ --- schemas/manifest.v2.schema.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/schemas/manifest.v2.schema.json b/schemas/manifest.v2.schema.json index e4f10ab3..7c41313b 100644 --- a/schemas/manifest.v2.schema.json +++ b/schemas/manifest.v2.schema.json @@ -26,11 +26,11 @@ }, "path_absolute": { "type": "string", - "pattern": "^/.*$" + "pattern": "^(__[A-Z_]*__)?/.*$" }, "name_and_permission": { "type": "string", - "pattern": "^([a-z_][a-z0-9_-]{0,30})(:[rwx-]{3})?$" + "pattern": "^(([a-z_][a-z0-9_-]{0,30})|([_A-Z]*))(:[rwx-]{1,3})?$" }, "sha256sum": { "type": "string",