hono icon indicating copy to clipboard operation
hono copied to clipboard

Proposal: Auto validation and auto data clean during return value

Open wogno opened this issue 5 months ago • 2 comments

What is the feature you are proposing?

We worked with fastapi and pydantic and one of best feature is that, we just pass schema, and response one, and themselves validate schema and clean data response, it will be really good to just pass without everything call zod to check in each request

wogno avatar Aug 10 '25 10:08 wogno

Hi @wogno, thank you for the proposal.

I think this is related to https://github.com/honojs/hono/pull/3843 and https://github.com/honojs/middleware/pull/184. Right?

yusukebe avatar Aug 11 '25 00:08 yusukebe

Exactly it is that.

wogno avatar Aug 11 '25 08:08 wogno