Closed nunofgs closed 8 years ago
Fixes an issue when validating a Collection with an array of assertions:
I.e.:
validate({ foo: ['foobar'] }, { foo: new Assert().Collection([new Assert().IsString(), new Assert().Length(3)]) })
would crash with:
Error: You must give an Assert or an Asserts array to validate a string
Great thx!
Thank you! Any chance you could publish a release?
Indeed. Done. Thanks
Fixes an issue when validating a Collection with an array of assertions:
I.e.:
would crash with: