Interface: ValidationError
Extends
Error
Properties
Methods
annotate()
ts
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
| Parameter | Type | Description |
|---|---|---|
stripColors? | boolean | if truthy, will strip the colors out of the output. |
Returns
string