Help needed writing a cel expression for a caveat #1833
Unanswered
vmendiratta
asked this question in
Q&A
Replies: 1 comment 3 replies
-
@vmendiratta 👋🏻 we created a custom CEL macro function for this, I think it should do what you expect:
See this example in SpiceDB tests |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Say, my caveat looks like following:
Sample:
expected - {"label": "important", "sub_label": ["some_value_1", "some_value_2"]}
provided - {"another_label": "something_else", "label": "important", "sub_label": ["some_value_1", "some_value_2", "some_value_3", "some_value_4"]}
I'm finding it a challenge to come up with a cel expression that, for every (key, value) pair in the expected map,:
Can you please guide me on how to go about this?
Beta Was this translation helpful? Give feedback.
All reactions