Optional
toOptional
shouldDecorate: booleanOptional
hasParent: booleantrue when the error is a child of an another one
Optional
parentPath: stringpath as string to the parent of this property
Optional
showConstraintMessages: booleanshow constraint messages instead of constraint names
Optional
validationOptional
childrenOptional
targetObject that was validated.
OPTIONAL - configurable via the ValidatorOptions.validationError.target option
Optional
propertyObject's property that haven't pass validation.
Optional
valueValue that haven't pass a validation.
OPTIONAL - configurable via the ValidatorOptions.validationError.value option
Optional
constraintsConstraints that failed validation with error messages.
Optional
contexts
decorate the message with ANSI formatter escape codes for better readability