Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Conversation

ploomiz
Copy link
Contributor

@ploomiz ploomiz commented Jun 20, 2022


labels: mergeable

Fixes: #issue

Motivation and Context

This PR adds support for the oneOf and notOneOf targeting rule operators. These operators are important to support rule conditions such as country is one of ('US', 'JP'). (The same condition could be achieved with the regex MATCHES operator, but the oneOf operator is clearer.)

Description

Added rule evaluation logic for oneOf and notOneOf.

How has this been tested?

Unit tests

@ploomiz ploomiz self-assigned this Jun 20, 2022
@ploomiz ploomiz requested review from petzel and vpai June 20, 2022 23:23
@ploomiz ploomiz merged commit f6924b4 into main Jun 21, 2022
@ploomiz ploomiz deleted the add-one-of-rule-operator branch June 21, 2022 19:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants