Compare commits

...

3 Commits

Author SHA1 Message Date
Kevin 31a5d27e49
Merge ea95a7df84 into 0dc8b719b4 2025-04-28 09:20:38 +02:00
Kevin De Porre ea95a7df84 Changeset 2025-04-22 08:52:25 +02:00
Kevin De Porre 617d7f17c8 Run validators before route middleware. 2025-04-22 08:51:57 +02:00
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

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