ecyrbe / zodios

typescript http client and server with zod validation

Home Page:https://www.zodios.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to handle zod parse error from api/endpoint declaration

fmartins-andre opened this issue · comments

The schema validation errors are shown in the console when in development mode, but in production, no error is emitted.
I wonder if there's a way for handle these kind of error from a central location, link in the api ou endpoint file, allowing me to toast some message or handle the error in some way.

commented

Hello,
Don't mind me converting this to discussion, also if you need help you can seek help in our discord Channel.