Skip to content

Bubbling validation errors from nested validators #3

@vsviridov

Description

@vsviridov

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions