validate(mixed $value, string $subPath = '', null|string|string[] $groups = null, bool $traverse = false, bool $deep = false)
Validates the given value within the scope of the current validation. The value may be any value recognized by the used metadata factory (see {@link MetadataFactoryInterface::getMetadata}), or an array or a traversable object of such values. Usually you validate a value that is not the current node of the execution context. For this case, you can pass the {@li