Asynchronous Validation in 2.20.2 don't work
See original GitHub issueHi,
It seems that there’s something wrong with the use of bluebird in 2.20.2.
app.use(expressValidator({
customValidators: {
isUsernameAvailable: function(username) {
return new Promise(function(resolve, reject) {
resolve(true)
});
}
}
}));
And got the message TypeError: promise.reflect is not a function in console
I downgraded to 2.20.1 and it works.
Issue Analytics
- State:
- Created 8 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
[v2]: Field level asynchronous validation does not work · Issue ...
From Formik 2.0.1 (with current version 2.1.2 as well) field level asynchronous validation does not work as expected.
Read more >Async custom validator not working and showing error ...
You have been given good tips on how to solve your problem. Those gathered... So your current issues are: Add return type of...
Read more >Using Custom Async Validators in Angular Reactive Forms
Ocasionally, we want to validate some input in our fields before submission, which will be validated against an asynchronous source.
Read more >Creating Angular Synchronous and Asynchronous Validators ...
Validators work primarily through what's returned from the validate() method. The validate(control:abstractControl): ValidationErrors|null ...
Read more >Asynchronous Validation — FluentValidation documentation
In some situations, you may wish to define asynchronous rules, for example when working with an external API. By default, FluentValidation allows custom ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Works fine in 2.20.3
Thx
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.