OptionaltoOptionalshouldDecorate: booleanOptionalhasParent: booleantrue when the error is a child of an another one
OptionalparentPath: stringpath as string to the parent of this property
OptionalshowConstraintMessages: booleanshow constraint messages instead of constraint names
OptionalvalidationOptionalchildrenOptionaltargetObject that was validated.
OPTIONAL - configurable via the ValidatorOptions.validationError.target option
OptionalpropertyObject's property that haven't pass validation.
OptionalvalueValue that haven't pass a validation.
OPTIONAL - configurable via the ValidatorOptions.validationError.value option
OptionalconstraintsConstraints that failed validation with error messages.
Optionalcontexts
decorate the message with ANSI formatter escape codes for better readability