You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Regrettably, may policies using if that are missing a import future.keywords.if still parse successfully. However, they're rarely do what the author intended.
What they have in common is a rule named if. So, regal could flag that as a likely error, hinting that future.keywords.if should be imported.
Example:
package play
allow :=true if {
input.foo
}
With input = {"foo": true}, data.play evaluates to
{
"if": true,
"allow": true
}
The text was updated successfully, but these errors were encountered:
Regrettably, may policies using
if
that are missing aimport future.keywords.if
still parse successfully. However, they're rarely do what the author intended.What they have in common is a rule named
if
. So, regal could flag that as a likely error, hinting thatfuture.keywords.if
should be imported.Example:
With input =
{"foo": true}
,data.play
evaluates toThe text was updated successfully, but these errors were encountered: