Closed arty-name closed 10 months ago
I agree, wanted to do this for a while. However it will result in a breaking change. Therefore, we need to bump the major version after the change has been implemented and approved.
Thank you very much Dimitris!
The standard Error class now has a standard property
cause
, and the support for it slowly spreads in the tools.I believe it would be nice to have the original
ZodError
to be available as thecause
property of theValidationError
.