Interface JoiValidationError

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

Hierarchy

  • Error
    • JoiValidationError

Properties

_original: any
details: ValidationErrorItem[]

array of errors.

isJoi: boolean
message: string
name: "ValidationError"
stack?: string

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

    • Optional stripColors: boolean

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

    Returns string

Generated using TypeDoc