validate(mixed $value, string $group, string $propertyPath, bool $traverse = false, bool $deep = false)
Validates a value. If the value is an array or a traversable object, you can set the parameter $traverse to true in order to run through the collection and validate each element. If these elements can be collections again and you want to traverse them recursively, set the parameter $deep to true as well. If you set $traversable to true, the visitor will nevertheless try to find met