zod-openapi infering route handler type from route handler

I've been trying for two hours to create a type helper for the route handler so I can extract it to its own file, but I can't figure out why the valid property is not working. I saw cj using it in his syntax hono introduction https://youtu.be/sYZW8TK2IV4?si=iCCHBmv7vA88Phya
Syntax
YouTube
You Should Use Hono in your Next Project
In this video CJ introduces Hono, a web application framework for building backend applications with JavaScript. He shows 5+ reasons why hono is great and why you should try using it in your next app. 00:00 Intro 00:26 Familiar Route Creation 01:12 Type Safety 01:50 Supports Every JS Runtime 02:26 Many Built-in Helpers / Middlewares 03:40 JSX S...
No description
No description
No description
No description
4 Replies
JustUseFirefox
JustUseFirefox2mo ago
Oh please please please, make the "Core" public when it's done, I have a swagger documentation I need to make an sdk out of it and this would help a lot
Keskas Aymen
Keskas Aymen2mo ago
yeah sure @JustUseFirefox hey bro it actually already implemented i shouldve seen that
Keskas Aymen
Keskas Aymen2mo ago
No description
Keskas Aymen
Keskas Aymen2mo ago
the only thing that is not validated is the responses idk why but everything else is perfect
Want results from more Discord servers?
Add your server