Handle empty permissions arrays when console runs in operator mode (#1324)

Signed-off-by: Lenin Alevski <alevsk.8772@gmail.com>
This commit is contained in:
Lenin Alevski
2021-12-15 10:11:43 -08:00
committed by GitHub
parent dd488e4f7a
commit 725d6f9691
5 changed files with 31 additions and 3 deletions

View File

@@ -2299,6 +2299,15 @@ func init() {
"operator": {
"type": "boolean"
},
"permissions": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
}
},
"status": {
"type": "string",
"enum": [
@@ -6094,6 +6103,15 @@ func init() {
"operator": {
"type": "boolean"
},
"permissions": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
}
},
"status": {
"type": "string",
"enum": [