It looks like errors from Zod validation on the request body are not flowing through but at some point they were intended to.
(Looking at the history, the errorMessages array was joined in the return string)
https://github.com/Bekacru/better-call/blob/638acd821f03cdb7016b3e4784092eef42b4cbbc/src/validator.ts#L74
Right now to make any use of error messages that are returned from a Zod validation I have to omit the body option and handle the running the validation myself.
Any objection to having the issues flow up so they can be used in the routers onError callback?
It looks like errors from Zod validation on the request body are not flowing through but at some point they were intended to.
(Looking at the history, the errorMessages array was joined in the return string)
https://github.com/Bekacru/better-call/blob/638acd821f03cdb7016b3e4784092eef42b4cbbc/src/validator.ts#L74
Right now to make any use of error messages that are returned from a Zod validation I have to omit the
bodyoption and handle the running the validation myself.Any objection to having the issues flow up so they can be used in the routers
onErrorcallback?