Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

What about we enable the veasy to handle the server-side validation as well? #11

Open
Albert-Gao opened this issue Oct 23, 2017 · 0 comments

Comments

@Albert-Gao
Copy link
Owner

Albert-Gao commented Oct 23, 2017

Currently, the last step is coupled with React state, but since the rulesRunner() will just execute each rule and yield the result, we could use this to do the server side validating so that veasy could be used universally, such that we can use the same schema to validate for both client side and server side.

Yup, I mean, for node of course.

The problem is:
Some field which not included in the validation schema, things in the collectValues, even we don't need to validate them on the client side, we still need to validate them at the server-side....a little bit tricky...

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

No branches or pull requests

1 participant