Title here
Summary here
The Options class enables control over how your validator processes data and handles errors.
throw
(boolean, default: true
): Controls whether the validator throws an exception immediately on the first
violation (true
) or aggregates all violations into the result (false
).strict
(boolean, default: true
): Determines if an exception is thrown when data properties lack corresponding
validation rules.Providing Options:
Options
instance as an optional argument to the validate()
method to customize
behavior for a specific validation run.Options
object to set default behaviors for
all subsequent validations performed by that validator instance.Example: