We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, this library looks great. Does it support validating nested objects? E.g. how could I write a schema to validate the object below?
{ name: "", about: "", location: { city: "", country: "", lat: 0, lng: 0 } },
I know I can do this:
location: { required: true, object: true, customRule: function (location) { return (location.city.length > 0) ? true : "Please select a location" } },
But is there a way of embedding validation rules for city, country, lat, lng in the schema directly?
The text was updated successfully, but these errors were encountered:
I am also interested whether we can validate nested objects and what would be the right way to do it?
Sorry, something went wrong.
No branches or pull requests
Hi, this library looks great. Does it support validating nested objects? E.g. how could I write a schema to validate the object below?
I know I can do this:
But is there a way of embedding validation rules for city, country, lat, lng in the schema directly?
The text was updated successfully, but these errors were encountered: