News for hackers. Stuff that matters.
Re:HonoJS: Small, simple, and ultrafast web framework for th... by soulchild77 on Tuesday April 16, 2024 @10:49AM (#40052703)
That's actually something I find a bit awkward, too. Especially, there was no way to re-use the global Hono error handler for all OpenAPI routes. I created an issue[1] with my suggested workaround and was told that that's the way to go. Maybe things are that way because `zod-openapi` was introduced later on. But I believe in the end it doesn't really matter that much as the code is clean and readable. :)

[1] https://github.com/honojs/middleware/issues/323#issuecomment...

Re:HonoJS: Small, simple, and ultrafast web framework for th... by franciscop on Thursday April 18, 2024 @06:49AM (#40074849)
> "in the end it doesn't really matter that much as the code is clean and readable"

The thing I'm worried about is the behaviour differences of having 2 different ways of importing things, exactly as it seems you found. That's valuable feedback, thanks!