Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add array and set support to object.subset #4865

Merged
merged 2 commits into from Jul 11, 2022

Conversation

x-color
Copy link
Contributor

@x-color x-color commented Jul 9, 2022

Add support for checking if super array contains every element of sub set to object.subset.
object.subset allows super to be array and sub to be set.

Fixes: #4858

Add support for checking if `super` array contains
every element of `sub` set to object.subset.
object.subset allows `super` to be array and `sub` to be set.

Fixes: open-policy-agent#4858
Signed-off-by: x-color <36035885+x-color@users.noreply.github.com>
Signed-off-by: x-color <36035885+x-color@users.noreply.github.com>
Copy link
Contributor

@srenatus srenatus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM -- thanks for contributing 🎈

@srenatus srenatus merged commit 3f1ed13 into open-policy-agent:main Jul 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

object.subset: allow super to be array, and sub to be set
2 participants