jlalmes / trpc-openapi

OpenAPI support for tRPC 🧩
https://www.npmjs.com/package/trpc-openapi
MIT License
2.18k stars 147 forks source link

Question : input and output must be z.object ? #437

Open TheUncharted opened 7 months ago

TheUncharted commented 7 months ago

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"