Skip to content

Commit

Permalink
Fix FieldRule
Browse files Browse the repository at this point in the history
* `username` can also be a list,
* `realm.name` is the field name, using an intermediate `realm` object does not work.
* `metadata` is not a key: keys are of the form `metadata.key = value`
  • Loading branch information
pquentin committed Dec 8, 2023
1 parent 4f9a95d commit 2234cc0
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 50 deletions.
63 changes: 29 additions & 34 deletions output/schema/schema.json

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

13 changes: 5 additions & 8 deletions output/typescript/types.ts

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

14 changes: 6 additions & 8 deletions specification/security/_types/RoleMappingRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* under the License.
*/

import { AdditionalProperties } from '@spec_utils/behaviors'
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
import { Name, Names } from '@_types/common'

Expand All @@ -33,14 +34,11 @@ export class RoleMappingRule {
/**
* @variants container
*/
export class FieldRule {
username?: Name
export class FieldRule
implements AdditionalProperties<string, UserDefinedValue>
{
username?: Names
dn?: Names
groups?: Names
metadata?: UserDefinedValue
realm?: Realm
}

export class Realm {
name: Name
'realm.name'?: Name
}

0 comments on commit 2234cc0

Please sign in to comment.