
Your Zod `.refine()` never reaches the model: what survives JSON Schema
OpenAI Node SDK and Vercel AI SDK run Zod 4 through z.toJSONSchema(); every `.refine()` drops silently. What the model sees — and how to fix it.
Developer news without the noise — My Dev News in Telegram.
