enhancement: add allowed role validation to the go-playground validator

This commit is contained in:
Florian Schade
2024-08-06 11:55:51 +02:00
parent 56537e94fc
commit 4638280d21
7 changed files with 88 additions and 33 deletions

View File

@@ -114,6 +114,9 @@ func DefaultConfig() *config.Config {
Cluster: "ocis-cluster",
EnableTLS: false,
},
UnifiedRoles: config.UnifiedRoles{
AvailableRoles: nil, // will be populated with defaults in EnsureDefaults
},
}
}