Options
All
  • Public
  • Public/Protected
  • All
Menu

ValidationError interface from Joi library

Hierarchy

  • Error
    • ValidationError

Index

Properties

_original

_original: any

details

Array of errors

isJoi

isJoi: boolean

message

message: string

name

name: "ValidationError"

Optional stack

stack?: string

Methods

annotate

  • annotate(stripColors?: boolean): string
  • 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