Format a ZodError as a human-readable string in the following form.
From
ZodError { issues: [ { expected: 'string', code: 'invalid_type', path: [ 'username' ], message: 'Invalid input: expected string' }, { expected: 'number', code: 'invalid_type', path: [ 'favoriteNumbers', 1 ], message: 'Invalid input: expected number' } ];} Copy
ZodError { issues: [ { expected: 'string', code: 'invalid_type', path: [ 'username' ], message: 'Invalid input: expected string' }, { expected: 'number', code: 'invalid_type', path: [ 'favoriteNumbers', 1 ], message: 'Invalid input: expected number' } ];}
to
username ✖ Expected number, received string at "usernamefavoriteNumbers[0] ✖ Invalid input: expected number Copy
username ✖ Expected number, received string at "usernamefavoriteNumbers[0] ✖ Invalid input: expected number
Format a ZodError as a human-readable string in the following form.
From
to