Skip to content
This repository has been archived by the owner on Dec 25, 2017. It is now read-only.

async validation example? #156

Closed
danjac opened this issue Feb 14, 2016 · 6 comments
Closed

async validation example? #156

danjac opened this issue Feb 14, 2016 · 6 comments

Comments

@danjac
Copy link

danjac commented Feb 14, 2016

According to #10 async validation (using promises) was added to vue-validator in 1.4.0. However as of 2.0.0.alpha the README still has async as a TODO item and there is only a stub test and no working examples around.

Could you please confirm a) if async validation is now in vue-validator and b) where we can find an example with the current release version (2.0.0.alpha)?

@danjac
Copy link
Author

danjac commented Feb 14, 2016

I did find an example here https://github.com/vuejs/vue-validator/wiki/Usage-for-v0.12-later#async-validation but it appears to be out of date with the current release.

@kazupon
Copy link
Owner

kazupon commented Feb 16, 2016

Sorry, I don't implement the async validation yet in 2.0.0.alpha, because I'm developing from full scratch.
I'll plan to develop the async validation soon. 😺

@danjac
Copy link
Author

danjac commented Feb 16, 2016

No problem, glad you're working on it.

What do you expect async-validation in 2.0 to look like? The 1.4* returned a plain function with (resolve, reject) arguments, but perhaps a straightforward Promise would be a more "natural" way of handling async.

@kazupon
Copy link
Owner

kazupon commented Feb 18, 2016

I'll support to the Promise and like v1.4* function(resolve, reject). 😺

@tylersnyder
Copy link

@kazupon any updates as to when you think async validation may be implemented in 2.0?

@kazupon
Copy link
Owner

kazupon commented Feb 27, 2016

@tylersnyder
Please wait 😺

@kazupon kazupon closed this as completed in a21a0af Mar 4, 2016
kazupon added a commit that referenced this issue Mar 12, 2016
- add: async validation (#156)
- add: validator function context (#165)
- update: validation timing customization

Closes #165
Closes #150
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants