Express support #205
Replies: 2 comments 2 replies
-
@fbritoferreira we've definitely thought of that and we've kind of implemented such a mechanism in our application but we've never really created it as a reusable library/framework. Not sure when we would get the time for such an effort. There is already https://hono.dev/ that has integrated with our library so something along those lines can definitely be implemented as a project for Express. I'd turn this into a discussion for now |
Beta Was this translation helpful? Give feedback.
-
There are a few projects which kinda do something similar to what you're describing. As I was looking for something similar and nothing really gave me the flexibility I wanted, I actually started work on a lib based on express and zod-to-openapi a few days ago to accomplish exactly this. Not very well documented yet, but hope it helps :) https://github.com/evertdespiegeleer/zhttp |
Beta Was this translation helpful? Give feedback.
-
Would it be a good idea to add a few helpers to make it easier to use this in express?
It would be nice if we could take a schema and make sure the path of the express handler is validated against it also params etc.
Happy to work on this if you think it would add value.
Beta Was this translation helpful? Give feedback.
All reactions