v2.5.0
What's Changed
-
Optimise ZodLazy recursive error messaging by @jedwards1211 in #103
-
Enhance error messaging by @samchungy in #112
When you encounter an error with the library, there will now be an associated path with the error which will make debugging easier. For example:
`The schema at lazy schema > array items > property: foo needs to be registered because it's circularly referenced`,
Big thanks to @jedwards1211 for making this possible.
Other Changes
- Use ZodType in declaration merging instead of ZodSchema by @jedwards1211 in #109
Full Changelog: v2.4.0...v2.4.1