Merge ea95a7df84
into a756d2235b
commit
f7fb035b0c
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'@hono/zod-openapi': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Run validators before route middleware.
|
|
@ -550,8 +550,8 @@ export class OpenAPIHono<
|
||||||
this.on(
|
this.on(
|
||||||
[route.method],
|
[route.method],
|
||||||
route.path.replaceAll(/\/{(.+?)}/g, '/:$1'),
|
route.path.replaceAll(/\/{(.+?)}/g, '/:$1'),
|
||||||
...middleware,
|
|
||||||
...validators,
|
...validators,
|
||||||
|
...middleware,
|
||||||
handler
|
handler
|
||||||
)
|
)
|
||||||
return this
|
return this
|
||||||
|
|
Loading…
Reference in New Issue