Kevin 2025-04-26 13:19:57 +09:00 committed by GitHub
commit f7fb035b0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
'@hono/zod-openapi': patch
---
Run validators before route middleware.

View File

@ -550,8 +550,8 @@ export class OpenAPIHono<
this.on(
[route.method],
route.path.replaceAll(/\/{(.+?)}/g, '/:$1'),
...middleware,
...validators,
...middleware,
handler
)
return this