Optional
isOptional
propertyOptional
eachOptional
messageError message to be used on validation fail. Message can be either string or a function that returns a string.
Optional
groupsValidation groups used for this validation.
Optional
alwaysIndicates if validation must be performed always, no matter of validation groups used.
Optional
context
Specifies if validated value is an array and each of its items must be validated.