Replies: 1 comment 1 reply
-
Yes, there is some ongoing work on h3 + #2974. you should be able to pass result of |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like my route OpenAPI to reuse the same definitions for query params, route params, and body as I am defining in the Zod schemas I am using when passing to the h3 utils for getting these with validation.
I know that there is an open issue (#2974) to make defineRouteMeta evaluate code, which will help. I'm wondering if there may be some way we could build it so that Nitro will accept Zod schemas for these things (perhaps with zod-openapi extension) and automatically validate as well as populate the OpenAPI.
What is the vision for OpenAPI support in Nitro? Is there interest in having this sort of deeper integration between the schemas defined in OpenAPI and the schemas used to validate input?
Beta Was this translation helpful? Give feedback.
All reactions