Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 31 additions & 52 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 1 addition & 7 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 3 additions & 15 deletions specification/security/_types/RoleMappingRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,15 @@
* under the License.
*/

import { Names } from '@_types/common'
import { SingleKeyDictionary } from '@spec_utils/Dictionary'
import { Field, FieldValue } from '@_types/common'

/**
* @variants container
*/
export class RoleMappingRule {
any?: RoleMappingRule[]
all?: RoleMappingRule[]
// `field` should have been defined as SingleKeyDictionary<String, ScalarValue|ScalarValue[]>
// However, this was initially defined as a container with a limited number of variants,
// and was later made non_exhaustive to limit breaking changes.
field?: FieldRule
field?: SingleKeyDictionary<Field, FieldValue | FieldValue[]>
except?: RoleMappingRule
}

/**
* @variants container
* @non_exhaustive
*/
export class FieldRule {
username?: Names
dn?: Names
groups?: Names
}