Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

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

Open
TheUncharted opened this issue Feb 20, 2024 · 0 comments
Open

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

TheUncharted opened this issue Feb 20, 2024 · 0 comments

Comments

@TheUncharted
Copy link

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"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant