Replies: 2 comments 12 replies
-
@rsinohara it's a little confusing because it's an array of arrays, but you should see something from your target schema reporting errors in the list of issues. feel free to post an example here! |
Beta Was this translation helpful? Give feedback.
-
Actually @colinhacks I have one specific case where I only get errors on the second union type. Is this behavior known or expected? This schema is defined by
|
Beta Was this translation helpful? Give feedback.
-
Let's say I have a Union of two types. I expect my value to match the first type, but something is wrong.
The problem is Zod only reports the error on the second type, so that doesn't help me to debug what is wrong in my first type.
Am I missing something? Right now (just starting) I remove the union just for debugging, but that will not be possible at scale.
Beta Was this translation helpful? Give feedback.
All reactions