trpc-openapi icon indicating copy to clipboard operation
trpc-openapi copied to clipboard

Question : input and output must be z.object ?

Open TheUncharted opened this issue 1 year ago • 0 comments

Hi First thanks for you work I have a quick question just to confirm the behaviour of trpc openapi From my reading, it seems the input / output must be z.object right ?

I tried to put just a z.string for an id for example but it i got this message "Input parser must be a ZodObject"

TheUncharted avatar Feb 20 '24 15:02 TheUncharted