hono
hono copied to clipboard
Output validator
What is the feature you are proposing?
*Maybe better suited for next big update
A feature to validate the output thats going out to the client... i.e. if you have object({ name: string(), age: int() }) and you send out the wrong structure it errors out, or if you send out email as one of the fields in the object it is removed
Hi @Micnubinub
Is your suggestion like these?
- https://github.com/honojs/middleware/pull/184
- https://github.com/honojs/hono/issues/2439
@yusukebe yea, like that... A response validator
Hi @yusukebe . I'm wondering if the https://github.com/honojs/middleware/pull/184 will be managed? Or is ok if I open PR for this feature?