Created
June 14, 2021 16:53
-
-
Save iloveicedgreentea/ec226059fe8a4a7588138fadc5490383 to your computer and use it in GitHub Desktop.
Read json in rego
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
# Deny if somevalue is false | |
deny[msg] { | |
val := input.somelist[i] | |
not val | |
msg := sprintf("%d: %s", [i, val]) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment