Skip to content

Commit

Permalink
Get Role Mappings optional roles field (#2474)
Browse files Browse the repository at this point in the history
  • Loading branch information
albertzaharovits authored Mar 29, 2024
1 parent cfa59ca commit 591a05e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions specification/security/_types/RoleMapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ import { RoleTemplate } from './RoleTemplate'
export class RoleMapping {
enabled: boolean
metadata: Metadata
roles: string[]
rules: RoleMappingRule
// Exactly one of roles or role_templates should be set
roles?: string[]
// Exactly one of roles or role_templates should be set
role_templates?: RoleTemplate[]
rules: RoleMappingRule
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ export interface Request extends RequestBase {
body: {
enabled?: boolean
metadata?: Metadata
// Exactly one of roles or role_templates must be specified
roles?: string[]
// Exactly one of roles or role_templates must be specified
role_templates?: RoleTemplate[]
rules?: RoleMappingRule
run_as?: string[]
Expand Down

0 comments on commit 591a05e

Please sign in to comment.