Farfetch / rules-framework

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

Operators.In and Operators.NotIn with not working properly when trying to match the rule setting the condition value as null #149

Closed isabelneto closed 1 year ago

isabelneto commented 1 year ago

Description

The problem with the IN and NOT IN operators when trying to match the rule by setting the condition value to null had as its root cause the fact that the default values defined for the array types were an empty array and should be its elementary types.

Fixed defaults for array types to the elementary types (int, decimal, bool and string).

Closes #130

Change checklist

Please also check the I want to contribute guidelines and make sure you have done accordingly.

Disclaimer

By sending us your contributions, you are agreeing that your contribution is made subject to the terms of our Contributor Ownership Statement