We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following locations should support := assignments:
:=
package play # default value assignment default p := 1 # else keyword p := 2 { false } else := 3 { true } # partial rule o[msg] := 5 { msg = [1, 2, 3][_] } # function return value f(x) := "bar!" { x == "foo" }
The text was updated successfully, but these errors were encountered:
Can we add function return values too? 🙂
f(x) := "bar!" { x == "foo" }
Sorry, something went wrong.
ast: Extending support for file-level assignments (:=)
e95844f
Uppdated support for: * default values * rules with `else` keyword * partial rules * functions Fixes: open-policy-agent#4555 Signed-off-by: Johan Fylling <johan.dev@fylling.se>
ast: Extending support for file-level assignments (:=) (#4583)
aeda97e
Updated support for: * default values * rules with `else` keyword * partial rules * functions Fixes: #4555 Signed-off-by: Johan Fylling <johan.dev@fylling.se>
ast: Extending support for file-level assignments (:=) (open-policy-a…
7160e24
…gent#4583) Updated support for: * default values * rules with `else` keyword * partial rules * functions Fixes: open-policy-agent#4555 Signed-off-by: Johan Fylling <johan.dev@fylling.se>
johanfylling
Successfully merging a pull request may close this issue.
The following locations should support
:=
assignments:The text was updated successfully, but these errors were encountered: