Native OCaml Rego/OPA policy engine
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

rego: fix README — note that eval is not yet implemented

+2 -1
+2 -1
README.md
··· 26 26 let input = 27 27 Result.get_ok (Rego.Value.of_json_string {|{"user": "admin"}|}) 28 28 in 29 + (* NOTE: evaluation is not yet implemented -- eval currently returns Undefined *) 29 30 let result = Rego.eval engine ~input "data.authz.allow" in 30 - assert (result = Rego.Value.Bool true) 31 + Printf.printf "Result: %a\n" Rego.Value.pp result 31 32 ``` 32 33 33 34 ## API