Skip to content

Nested Validations #76

@nmagerko

Description

@nmagerko

I may have missed it in the documentation, but is there a way to check an object with nested objects contained within it, or is this not possible? For example, if I have an object like:

{
  "key1": "example",
  "key2": {
    "key3: "example",
    "key4": "example"
  }
}

Would I be able to write a CheckIt validator to validate the entire object at once, even the keys under key2? The only alternative seems to be to validate the contained objects individually, which would make my code less general than I had hoped.

If this is not possible, perhaps it would be a useful enhancement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions