Charter · Verifier rules
ambiguous-selection (error)
Error. Reported when a role has both a top-level allow or deny and an actions section. Top-level allow is shorthand for the actions selection, so the role defines that selection twice and the two can conflict.
{ usher: { allow: ['programme'], actions: ['door.*'] } }[
{
level: 'error',
rule: 'ambiguous-selection',
detail: 'role "usher" has both top-level allow/deny and an "actions" section — one selection per section',
},
]Runs in this page on the installed package. The input and the expected output are defined by the example.