reactioncommerce / kinetic

Kinetic introduces a suite of opinionated admin tools that internal teams can use to manage and run their stores on Open Commerce.
Apache License 2.0
7 stars 3 forks source link

Should send single value when creating inclusion/exclusion rules with `equal` operator #193

Closed vannguyenn closed 1 year ago

vannguyenn commented 1 year ago

Resolves #192

Testing Instructions:


 inclusionRules:  {
    "conditions": {
        "all": [
            {
                "fact": "item",
                "path": "$.productVendor",
                "value": "EMS",
                "operator": "equal"
            }
        ]
    }
}
inclusionRules: {
    "conditions": {
        "all": [
            {
                "fact": "item",
                "path": "$.productVendor",
                "value": [
                    "EMS"
                ],
                "operator": "in"
            }
        ]
    }
}