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
Labels
Currently, the last step is coupled with
React state
, but since therulesRunner()
will just execute each rule and yield the result, we could use this to do the server side validating so thatveasy
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...The text was updated successfully, but these errors were encountered: