react-jsonschema-form-conditionals icon indicating copy to clipboard operation
react-jsonschema-form-conditionals copied to clipboard

Can't Check if value is in a list of values

Open mfreeman-xtivia opened this issue 6 years ago • 0 comments

The documentation states that the library leverages the predicate library and i would like to use

http://landau.github.io/predicate/#includes

to test whether a value exists in the supplied list. But I get an invalid predicate error when i use something like this.....

{"vehicleOwner": {"not": {"includes": ["Other","Business"] }}}

and from what i can tell its unhappy about 0 and 1 being the "indexes" on the predicate. Is this the right way to use this rule and test for inclusion in a list? or am i missing something

mfreeman-xtivia avatar Nov 27 '18 22:11 mfreeman-xtivia