Andrew Vo-Nguyen
Andrew Vo-Nguyen
+1 Square, please update ASAP. This is a blocker for all your customers trying to release a new Android build after November 1, 2025.
I had to look deep into the docs to find out how to manually upgrade Square’s Android package for React Native. For anyone else reading, it’s here: https://github.com/square/in-app-payments-react-native-plugin/blob/master/docs/get-started.md#step-4-configure-your-android-project You need...
@masterkain , can you provide a reproducible example via a codepen or something similar? I tried `zod 3.23.0` with `zod-error 1.5.0` with no issues. If you could demonstrate the issue...
Hi @josh-burton , I believe zod v4 has this functionality built in: https://zod.dev/error-formatting
https://github.com/andrewvo89/zod-error/releases/tag/v2.0.0
Thanks @Jackman3005, are you able to post a reproducible sample? Perhaps the schema and the data sample data that would fail the parse? And lastly, what you expect the final...
Hey @Jackman3005, I gave this issue a bit more thought and have released an updated version (v1.4.0) where the error transform function now gets the original ZodIssue passed down. Here...
Hi @Thinkscape , please see https://github.com/andrewvo89/zod-error/issues/4#issuecomment-1439861157 for an example on how you can access the inner `unionErrors` property to use for your final error message.
Hey @Thinkscape, try this: ```ts const a = z.object({ foo: z.string(), }); const b = z.object({ bar: z.string(), }); const schema = z.union([a, b]); const parsed = schema.safeParse(null); if (!parsed.success)...
> Thanks Andrew. It does the job, but my point was about having this built/bundled into `zod-error` instead of having to manually come up with a transformer for each version...