Replies: 1 comment
-
Good idea, I opened the PR #19 Any feedback is welcome |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I am using the built-in schema validation of this library, but in my use case I would like to have better access to the validation errors. I am using the
onError
hook to send those error to our error monitoring tool, but I noticed that this library throws a genericError
when schema validation fails.My workaround looks like this
It would be nice to have a custom error built-in like the
ResponseError
, for example:What do you think? If this is out-of-scope of this library, I'm fine with my current workaround.
Beta Was this translation helpful? Give feedback.
All reactions