1
0
Fork 0
mirror of https://github.com/YunoHost/apps.git synced 2024-09-03 20:06:07 +02:00

schemas: Fix regexes: name_and_permission to allow __KEY__ and non-complete rwx syntax ; path_absolute to allow __KEY__

This commit is contained in:
Salamandar 2023-09-24 16:08:03 +02:00
parent 9514d6a2bf
commit 03504079da

View file

@ -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",