You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
modelBooks{/// @zod.openapi({description: 'Unique identifier for Books'})idInt @id @default(autoincrement())}exportconstBooksSchema=z.object({id: z.number().int().openapi({description: 'Unique identifier for Books'}),})
This is not an official API for zod, so it might be better to create@zod.custom.append that allows arbitrary code to be appended after the schema definition for each key without checks.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello! Thank you for creating such a great tool.
https://github.com/asteasolutions/zod-to-openapi provides
.openapi()
method for extending zod schema. I am very happy ifzod-prisma-types
acceptedopenapi
annotations.This is not an official API for zod, so it might be better to create
@zod.custom.append
that allows arbitrary code to be appended after the schema definition for each key without checks.Beta Was this translation helpful? Give feedback.
All reactions