Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ValidationError

Hierarchy

  • Error
    • ValidationError

Index

Properties

_original

0.0.46 provide
_original: any

details

0.0.46 provide

array of errors.

isJoi

0.0.46 provide
isJoi: boolean

message

0.0.46 provide
message: string

name

0.0.46 provide
name: "ValidationError"

Optional stack

0.0.46 provide
stack: string

Methods

annotate

0.0.46 provide
  • 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