EllAchE

Results 5 comments of EllAchE

Updating on this - realizing what I want is aversion of safeParse that returns its best attempt at parsing the schema alongside the error. So even if there is a...

> Just making the fields optional and or nullable is not enough? > > Combined with a .passtrhough should be plenty. @m10rten thanks for the response! I'm happy to work...

> I suppose you could make a `warn` function that takes a zod schema and never errors, but that destroys your request, so the way I see it, this could...

> Zod would benefit from some concept of "error levels" and Zod 4 will likely include some concept of a "warning". > > ```ts > z.string().min(5, { level: 'warn' })...

@m10rten @colinhacks put together a draft PR as a starting point on a fork of the repo. https://github.com/EllAchE/zod/pull/2/files. Wanted to share for further discussion. Implementation here ^ just types the...