Multiple JSON inputs for opa eval command #406
Unanswered
Sumanth-Tarimala
asked this question in
OPA and Rego
Replies: 1 comment 4 replies
-
What do you mean by "the requirement"? Would you expect both inputs to be merged? Or two different evaluations to be performed using each of the input files in sequence? If it's the former, you're probably best off merging the input beforehand, using If it's the latter, conftest might be of interest. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The requirement is to give two JSON inputs for a rego query. Below is the command used to evaluate the policy and getting data file (input2.json) in the output.
opa eval -d my_policy.rego -i input1.json -d input2.json data
Please suggest is there a way to opt out a data file (input2.json) from the output.
Beta Was this translation helpful? Give feedback.
All reactions