Skip to content

feature: Support Zod v4 #72

Open
mapsi wants to merge 1 commit intosinclairzx81:mainfrom
mapsi:zod-v4-support
Open

feature: Support Zod v4 #72
mapsi wants to merge 1 commit intosinclairzx81:mainfrom
mapsi:zod-v4-support

Conversation

@mapsi
Copy link

@mapsi mapsi commented Feb 15, 2026

As discussed in #62

I followed the existing patterns to add support for Zod v4

Summary

  • Add ModelToZod4 namespace with Zod v4 API changes: z.strictObject(), z.record(z.string(), ...), and z.function({ input, output })
  • Rename existing implementation to ModelToZod3
  • ModelToZod remains as a backward-compatible alias for ModelToZod3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant