asteasolutions / zod-to-openapi

A library that generates OpenAPI (Swagger) docs from Zod schemas
MIT License
997 stars 61 forks source link

Express support #203

Closed fbritoferreira closed 10 months ago

fbritoferreira commented 11 months ago

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.

AGalabov commented 10 months ago

@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