Merge ea95a7df84
into bed23c62f5
commit
f184c4f82e
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'@hono/zod-openapi': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Run validators before route middleware.
|
|
@ -546,8 +546,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