mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-01-10 15:37:48 +08:00
Merge pull request #2456 from nextcloud/enh/noid/update-schema
updaate regex for some values in containers schema
This commit is contained in:
commit
1304734d3e
1 changed files with 4 additions and 9 deletions
|
@ -55,7 +55,7 @@
|
||||||
},
|
},
|
||||||
"internal_port": {
|
"internal_port": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"pattern": "^([0-9]{1,5})?(host)?(%[A-Z_]+%)?$"
|
"pattern": "^(([0-9]{1,5})|host|(%[A-Z_]+%))$"
|
||||||
},
|
},
|
||||||
"stop_grace_period": {
|
"stop_grace_period": {
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
|
@ -77,9 +77,7 @@
|
||||||
},
|
},
|
||||||
"protocol": {
|
"protocol": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"pattern": "^(tcp)?(udp)?$",
|
"pattern": "^(tcp|udp)$"
|
||||||
"minlength": 3,
|
|
||||||
"maxlength": 3
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -117,14 +115,11 @@
|
||||||
"properties": {
|
"properties": {
|
||||||
"destination": {
|
"destination": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"pattern": "^(/[a-z_/.-]+)?(%[A-Z_]+%)?$",
|
"pattern": "^((/[a-z_/.-]+)|(%[A-Z_]+%))$"
|
||||||
"minlength": 2
|
|
||||||
},
|
},
|
||||||
"source": {
|
"source": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"pattern": "^([a-z_]+)?(%[A-Z_]+%)?$",
|
"pattern": "^(([a-z_]+)|(%[A-Z_]+%))$" },
|
||||||
"minlength": 2
|
|
||||||
},
|
|
||||||
"writeable": {
|
"writeable": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue