permit(principal, action, resource) when { principal has if };
The CLI reports a parsing error as follows,
× failed to parse policy set
╰─▶ this identifier is reserved and cannot be used: if
╭────
1 │ permit(principal, action, resource) when { principal has if };
· ────────────────
╰────
The error span should ideally only cover if, as opposed to the entire has expression.
Describe alternatives you've considered
No response
Additional context
No response
Is this something that you'd be interested in working on?
[X] 👋 I may be able to implement this internal improvement
Describe the improvement you'd like to request
Consider the following ill-formed policy,
The CLI reports a parsing error as follows,
The error span should ideally only cover
if
, as opposed to the entirehas
expression.Describe alternatives you've considered
No response
Additional context
No response
Is this something that you'd be interested in working on?