Closed ricardogama closed 8 years ago
@ruimarinho @guillaumepotier Please review.
@guillaumepotier @ruimarinho ping
Seems good. But a test in test suite is missing to be merged :)
Best
@guillaumepotier Done!
Seems good. WDYT @ruimarinho?
I can confirm there is an issue with group support when using static methods but this PR does not fix it. Please take a look at https://github.com/guillaumepotier/validator.js/pull/55 instead.
This PR updates
Extended
method to implicitly create an instance if it's called without context. This wayExtended
can now be called without context (asis
) to use validation groups (just likeAssert
), which currently throws an error.