Colin McDonnell

Results 426 comments of Colin McDonnell

I need a full reproduction to debug this. What data are you passing into `schema.parse()`?

I think something like this should definitely happen, but it won't look exactly like this. This will land in Zod 4. More details here https://github.com/colinhacks/zod/pull/3152#issuecomment-1945200427 Leaving open for now.

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' }) ``` That said, I...

I like this a lot and will hopefully land it in 3.21. 3.20 is already feature locked but 3.21 will follow swiftly.

As @santosmarco-caribou says, the original approach does break Zod's error message hierarchy. I pushed a commit that uses a different approach, adding an optional `exact` flag (alongside `inclusive`) that we...

I'm open to switching a regex without a negative look-behind. Open to proposals here.

Just reverted, landing in 3.20.2 momentarily