CSenshi / Validator

Easy-to-use, Highly Configurable Python Data Validator. Inspired by Laravel Validator
https://pypi.org/project/validator/
MIT License
46 stars 23 forks source link

Nested properties validation? #121

Closed luminescent closed 3 years ago

luminescent commented 3 years ago

Would it be possible to validate more complex requests, with nested properties?

Eg:

{
    "name": "some name",
    "x": {
        "a": "a_val",
        "b": "b_val"
    }
}

And the rules could for example be:

{
    "name": "required",
    "x": {
        "a": "required",
        "b": "mail"
    }
}
CSenshi commented 3 years ago

Not for now... It is feature requested by many and we try to do our best about it. As for now our development is stopped, but it will be continued in a few weeks and we are going to rework code and then implement new features like this one.