I think that the assert is doing more than it should. This shouldn't be invalid:
validator.validate({
foobar: [],
foobiz: ''
}, {
foobar: [
new Assert().Required(),
new Assert().InstanceOf(Array)
],
foobiz: [
new Assert().Required()
]
});
@guillaumepotier WDYT? Currently I'm overriding the assert but if you agree I can create a PR.
I think that the assert is doing more than it should. This shouldn't be invalid:
@guillaumepotier WDYT? Currently I'm overriding the assert but if you agree I can create a PR.