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

OpenAPI generation assumes jsonResponse is a z.object() #60

Open
codetheweb opened this issue Apr 6, 2023 · 0 comments · May be fixed by #69
Open

OpenAPI generation assumes jsonResponse is a z.object() #60

codetheweb opened this issue Apr 6, 2023 · 0 comments · May be fixed by #69
Labels
good first issue Good for newcomers

Comments

@codetheweb
Copy link
Contributor

withRouteSpec({
  methods: ["GET"],
  jsonResponse: z.array(z.number())
} as const)

doesn't work:

Screenshot 2023-04-06 at 4 42 26 PM

@codetheweb codetheweb added the good first issue Good for newcomers label Apr 6, 2023
@ethanplee14 ethanplee14 linked a pull request Apr 28, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant