Skip to content

Validation of nested data structure #64

@Shandur

Description

@Shandur

Hello!
Could you, please, describe or provide some example of how can I validate nested data structure (parent->children->children and so on)? Can't figure the best way without repeating the same validation rule for field.
For example, we have the next nested structure:

{
    id
    title
    children {
       id
       title
       children {....}
    }
}

Is it possible to validate structure with infinite/finite nesting without repeating validation rules for each children?
Thanks!

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