Benno
Explore posts from serversEnforcing strict types for Hono's c.json() responses?
Wait I can just directly pass the
hono.TypedResponse
instead of going through the hono.HandlerResponse
.
Now its working. Not perfect since the type gets enforced on the handler level (not at c.json
) but better than before. Thanks for the hint 🙂
5 replies
Enforce OpenAPI types
Managed to make it somewhat work. Will improve it over time. I'm quite new to Hono but like it so far.
https://discord.com/channels/1011308539819597844/1012485565087748156/1260595634583638076
4 replies
Enforce OpenAPI types
ok seems to be possible via the validator interface
wip: https://github.com/inbeta-group/monorepo/pull/49
4 replies
Enforce OpenAPI types
Ok doesn't seem to be possible (yet).
https://github.com/honojs/hono/pull/1634
4 replies