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:
parent
9514d6a2bf
commit
03504079da
1 changed files with 2 additions and 2 deletions
|
@ -26,11 +26,11 @@
|
||||||
},
|
},
|
||||||
"path_absolute": {
|
"path_absolute": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"pattern": "^/.*$"
|
"pattern": "^(__[A-Z_]*__)?/.*$"
|
||||||
},
|
},
|
||||||
"name_and_permission": {
|
"name_and_permission": {
|
||||||
"type": "string",
|
"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": {
|
"sha256sum": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|
Loading…
Add table
Reference in a new issue