resolvers icon indicating copy to clipboard operation
resolvers copied to clipboard

issue: [zod/v4] All error messages return "Invalid Input" instead of descriptive messages

Open tunctn opened this issue 1 year ago • 1 comments

Version Number

5.1.0

Codesandbox/Expo snack

https://codesandbox.io/p/sandbox/long-flower-y4lkvn

Steps to reproduce

  1. Open the Sandbox
  2. Submit the zod/v3 and zod/v4 forms with any invalid values. I set some defaults for you.
  3. Check the error messages below the input fields. You can check the console.log for more info.

Expected behaviour

I would expect the get the same type of descriptive error messages as zod/v3. However zod/v4 only returns "Invalid Input" for any given error type.

What browsers are you seeing the problem on?

Chrome

Screenshot

Image

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

tunctn avatar Jun 07 '25 17:06 tunctn

:tada: This issue has been resolved in version 5.1.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] avatar Jun 09 '25 07:06 github-actions[bot]