Interface ValidationError

ValidationError interface from Joi library

interface ValidationError {
    _original: any;
    details: ValidationErrorItem[];
    isJoi: boolean;
    name: "ValidationError";
    annotate(stripColors?: boolean): string;
}

Hierarchy

  • Error
    • ValidationError

Properties

Methods

Properties

_original: any

Array of errors

isJoi: boolean
name: "ValidationError"

Methods

  • Function that returns a string with an annotated version of the object pointing at the places where errors occurred. NOTE: This method does not exist in browser builds of Joi

    Parameters

    • OptionalstripColors: boolean

      if truthy, will strip the colors out of the output.

    Returns string