Category "zod"

Why does Zod make all my schema fields optional?

I am using Zod inside my Express & TypeScript & Mongoose API project and when trying to validate my user input against the user schema it returns types

Why does Zod make all my schema fields optional?

I am using Zod inside my Express & TypeScript & Mongoose API project and when trying to validate my user input against the user schema it returns types

zod-prisma keeps getting stuck at the generation step

I just installed zod-prisma to try it out, but so far nothing is working. I attempted to run it on two separate projects, one has a small prisma and the other h

Zod: create a schema using an existing type

I have an endpoint that should get a parameter method which should comply with the axios type Method. How can I create a schema in Zod that validates that the v