Skip to content

Need help with json.patch built-in #361

Discussion options

You must be logged in to vote

Hi there! 👋 Variables in Rego are immutable, so you can't change the value of required_approvals. You can however assign the result of the patch operation to a new var. I'm surprised you did not see an error message about that. If you can share your policy in full, I'd be happy to take a look.

See example of working policy here: https://play.openpolicyagent.org/p/vQQQopNORc

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cmorinupgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants