Closed tlyau62 closed 2 years ago
For the getRules api, the returned rules array may be better to have the empty rule like the following
{ "empty": true }
instead of the null values object to prevent ambiguity.
{ "id": null, "filter": null, "value": null // ... }
So, may we have an option like this which also support for backward compatibility?
builder.getRules({ "emptyRule": true })
if filter is null then then rule is empty, and the rule is only considered empty if the filter is null
you can also already ignore empty rules with skip_empty option
skip_empty
no need for change
For the getRules api, the returned rules array may be better to have the empty rule like the following
instead of the null values object to prevent ambiguity.
So, may we have an option like this which also support for backward compatibility?