Farfetch / rules-framework

A generic framework that allows defining and evaluating rules for complex business scenarios.
MIT License
40 stars 7 forks source link

[Feature Request]: Support many to one multiplicity on contains operator #164

Closed luispfgarces closed 4 months ago

luispfgarces commented 4 months ago

Is your request related to a problem you have?

I want to be able to define rules that given a array (e.g. of strings) I can check that it contains a specific element.

Samples:

Describe the solution you'd like

Allow receiving an array of the supported primitive types (strings, integers, decimals, and booleans) a condition value.

When receiving a condition value of type array and applying the contains operator, evaluate contains as a "contains exactly case sensitive" using the operand defined in the rule.

Are you able to help bring it to life and contribute with a Pull Request?

Yes

Additional context

No response