Merge pull request #2456 from nextcloud/enh/noid/update-schema

updaate regex for some values in containers schema
This commit is contained in:
Simon L 2023-05-01 19:10:23 +02:00 committed by GitHub
commit 1304734d3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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