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

Bubbling validation errors from nested validators #3

Open
vsviridov opened this issue May 20, 2021 · 0 comments
Open

Bubbling validation errors from nested validators #3

vsviridov opened this issue May 20, 2021 · 0 comments

Comments

@vsviridov
Copy link

Currently if a nested validator (created using withValidator or eachItemWith, etc... fires - it only reports the property name as it knows it so for some object like

{
  a: {
    Id: ""
    b: {
      Id: ""
      c: {
        Id: ""
      }
   }
}

it will report Id is empty (or equivalent), so for complex objects it is difficult to figure out that it was a.b.c.Id that was empty and not some other one.

What would be a good way to fix this?

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

No branches or pull requests

1 participant