Function: formatErrors()
formatErrors(
errors):string[]
Defined in: src/lib/presets/index.ts:19
Turn validation errors into readable messages.
Parameters
errors
ValidationError[] | null | undefined
Returns
string[]
Example
formatErrors([{ instancePath: "/id", message: "must match pattern" }]); // ["/id must match pattern"]