canjs / can-define-validate-validatejs

ValidateJS plugin for can-define
https://canjs.com/doc/can-define-validate-validatejs.html
MIT License
2 stars 0 forks source link

Add async handling #12

Open Macrofig opened 7 years ago

Macrofig commented 7 years ago

Validatejs allows custom async validations. If a constraint contains an async validation, validatejs will throw an error; the async validator method must be used.

Package should have new api that opts-in to async method instead of sync method. The async method returns a promise while the sync method returns errors.

justinbmeyer commented 7 years ago

@Macrofig did you fix this?