-
Notifications
You must be signed in to change notification settings - Fork 148
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
zod-openapi example errors #147
Comments
I got same error. |
Hi @Mcbeer , @macoto1995 ! This issue was fixed in new version |
@yusukebe |
Sorry for the late reply @yusukebe - It is now confirmed working, thank you for your hard work! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Following the examples linked: here
I get the following error:
Argument of type '(c: Context<Env, "/:id", { in: { param: { id: string; }; }; out: { param: { id: string; }; }; }>) => TypedResponse<{ id: string; age: number; name: string; }>' is not assignable to parameter of type 'Handler<Env, "/:id", { in: { param: { id: string; }; }; out: { param: { id: string; }; }; }, { id: string; name: string; age: number; }>'. Type 'TypedResponse<{ id: string; age: number; name: string; }>' is missing the following properties from type '{ id: string; name: string; age: number; }': id, name, age ts(2345)
It appears the
TypedResponse
helper type is causing this error(I am quite new to OpenAPI, so this is all a bit arcane for me)
The text was updated successfully, but these errors were encountered: