Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant