Open hongquan opened 1 month ago
Seems to be difference across build.
If I use zod
directly in my project, safeParse
and parse
give the same result.
But if I use indirectly via some 3rd-party lib, like https://github.com/muzychenka/vue3-websocket, then safeParse
doesn't respect coerce
, transform
....
We have a schema:
and data:
If call
.parse
, thecreated_at
field is converted toDate
, which is correct, but if call.safeParse
, thecreated_at
is still a string.