Documents / @faasjs/node-utils / formatSchemaError
Function: formatSchemaError()
formatSchemaError(
error,message):string
Format a Zod validation error with FaasJS' boundary-validation message style.
Each Zod issue is rendered on its own line with a dot-joined path, or <root>
for root-level issues.
Parameters
error
ZodError
Zod validation error to format.
message
string
First line of the formatted message.
Returns
string
Multi-line formatted validation message.