express-validator
express-validator copied to clipboard
Wildcard for values with "."
For example, if I have objects -
{ "foo.bar" : { "x" : { "value" : 1 } } }
and
{ "foobar" : { "x" : { "value" : 1 } } }
and in checkSchema() if I wanted to write a wildcard for "value", *.*.value only works for the second object and not the first. Is there a way to make a single wildcard to work for both?