Compare commits

...

4 Commits

Author SHA1 Message Date
Kevin 263c170627
Merge ea95a7df84 into 0debb59474 2025-05-02 10:52:13 +02:00
Shotaro Nakamura 0debb59474
ci: add codestyle ci (#1149) 2025-05-02 16:51:42 +09: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
3 changed files with 24 additions and 1 deletions

View File

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

18
.github/workflows/codestyle.yml vendored 100644
View File

@ -0,0 +1,18 @@
name: codestyle
on:
push:
branches: [main]
pull_request:
branches: ['*']
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
- run: yarn
- run: yarn format
- run: yarn lint

View File

@ -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