Colin McDonnell
Colin McDonnell
Great idea. I appreciate you looking into the initialization perf. How are you benchmarking that? I'd like to have a decent benchmark for initialization if you have one - feel...
Working perfectly with Zod 4 recursive object types! ```ts import * as z from "zod/v4"; function treeOf(baseSchema: TBaseSchema) { const AndNode = z.object({ type: z.literal("and"), get children() { return Tree.array();...
Discriminated union -> `oneOf` Union -> `anyOf` This is sound and mirrors the validation behavior of these keywords in JSON Schema. (With discriminated unions, the input can only match one...
@coderabbitai review this
I have not been able to fix this issue without also breaking Zod's recursive type inference. I'm quite confident there is a fundamental TypeScript limitation here.
So you're taking the error object and trying to assign to `$ZodIssueStringStartsWith`? There are several cases where Zod adds additional properties for additional context not described in the issue types,...
cc @hmnd is this ready to be merged?
cc @pullfrog review
The repro from the linked issue was fixed, so this is a new issue that needs a new reproduction.
Thanks! Definitely an improvement.