Your Zod .refine() Never Reaches the Model: What Survives the Trip to JSON Schema
DEV Community
Your Zod .refine() Never Reaches the Model: What Survives the Trip to JSON Schema
Zod 4's z.toJSONSchema() drops every .refine() and can't express transforms. Here's what the model sees, and a describe, validate, retry-once fix.
0 comments
No comments yet.