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.

Charter
{ usher: { allow: ['programme'], actions: ['door.*'] } }
Issues for this rule
[
  {
    level: 'error',
    rule: 'ambiguous-selection',
    detail: 'role "usher" has both top-level allow/deny and an "actions" section — one selection per section',
  },
]
Output matches the expected value

Runs in this page on the installed package. The input and the expected output are defined by the example.