Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno_class_validator/src/validation/ValidationError.ts>ValidationError#toString

Decorator-based property validation for classes.
Latest
method ValidationError.prototype.toString
import { ValidationError } from "https://deno.land/x/deno_class_validator@v1.0.0/src/validation/ValidationError.ts";

Parameters

optional
shouldDecorate: boolean = [UNSUPPORTED]

decorate the message with ANSI formatter escape codes for better readability

optional
hasParent: boolean = [UNSUPPORTED]

true when the error is a child of an another one

optional
parentPath: string = [UNSUPPORTED]

path as string to the parent of this property

Returns

string