Open jqdurham opened 9 years ago
Given the following JSON. How could you validate JSON types for the owner's name. This is an example from your documentation, but the Lamborghini's owner has been removed.
{ "cars":[ { "make":"Tesla", "model":"Model S", "owners":[ { "name":"Bart Simpson" } ] }, { "make":"Lamborghini", "model":"Aventador" } ] }
The optional() method appears to only support optional hashes. How do we validate optional arrays of hashes?
Its not currently supported, but, I'll look into implementing it. Thanks for pointing it out!
Given the following JSON. How could you validate JSON types for the owner's name. This is an example from your documentation, but the Lamborghini's owner has been removed.
The optional() method appears to only support optional hashes. How do we validate optional arrays of hashes?