Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return all validation errors rather than return first #49

Open
rochal opened this issue Nov 19, 2015 · 1 comment
Open

Return all validation errors rather than return first #49

rochal opened this issue Nov 19, 2015 · 1 comment
Milestone

Comments

@rochal
Copy link

rochal commented Nov 19, 2015

Hi,

When I'm trying to validate object such as:

{
  "id": "asd",
  "username": 123
}

I get following ValidationError error back: "child "id" fails because ["id" must be a number]"

My schema defines "id" as integer and "username" as string so the validation behavior is correct. However - I am unable to get ALL errors at once from the validation function. This means I can't validate all fields at once and return an array of errors.

Is this possible / am I missing something?

@rcherny
Copy link

rcherny commented Feb 1, 2016

I'd like to be able to do this as well. Any pointers and would be grateful.

@subeeshcbabu-zz subeeshcbabu-zz added this to the v2.0.0 milestone Jul 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants