WAAYZZz 🍀
Type checking with Hono + prisma + zod -> return json date (expect string)
HI, i m usin openAPi I declared return params in my route
my prisma schema generating
But since the json return transform date to string, type checking is wrong. What is the best thing to do to handle that ? (the return schema is generated by zod-prisma-types)
it's look easy but i m new with zod and openApi
If i change z.coerce.date() to z.string() type checking will work, but thoz zod object is auto generated by zod-prisma-types
2 replies