Commit Graph

8 Commits (a62b59f4505d10f41523a36ad7c02776f9e1cb01)

Author SHA1 Message Date
Yusuke Wada a62b59f450
feat(zod-validator): support Zod v4 (#1173)
* feat(zod-validator): support Zod v4

* changeset

* oops. using `any`

* remove the not used value

* [wip] support both v3 and v4

* update

* avoid the type error on build

* remove unnecessary `unknown`

* fixed type and add test

* avoid the type error

* rename the test

* don't use `schema instanceof ZodObject`

* update README

* use released `3.25.6`

* changeset

* use `zod` instead of `zod/v3`

* don't update the peerDependencies

* use both v3 and v4 types if Zod has v4

* fix ZodError

* fixed

* update lock file

* update README

* remove unnecessary cast
2025-05-27 17:47:54 +09:00
Yusuke Wada 8ed99d9d79
feat(zod-validator): add `validationFunction` option (#1140)
Co-authored-by: migawka <migawka@amadeustech.dev>
2025-04-27 20:12:13 +09:00
Jonathan Haines 783a082c12
chore: add coverage badges (#1023)
* chore: add coverage badges

* ci(casbin): fix spelling
2025-03-19 17:53:11 +09:00
Farhad Faraji 8a2d4651b0
docs(zod-validator) - Update README.md to include an example with a custom validator wrapper for improved type inference (#922)
* docs: add custom validator example for improved type inference

* Update README.md - removed default value of target
2025-01-05 18:04:45 +09:00
ktKongTong 755d5cb84d
docs(zod-validator): add usage docs for `zErrValidator` (#900)
* docs(zod-validator): add usage docs for `zErrValidator`, throw a validating error instead of directly returning an error response. (#890)

* docs(zod-validator): change zod error to Hono HTTPException

* remove useless generic
2024-12-25 10:32:07 +09:00
Curtis Larson 2a3245ad06
feat(typebox-validator): Add TypeBox Validator middleware (#55)
* feat(typebox-validator): Add TypeBox Validator middleware

* fix(typebox-validator): Updates based on code review comments
2023-02-24 18:22:02 +09:00
Yusuke Wada 72604c74da
refactor(zod-validator): rename `VaildatorTypes` to `ValidatoerTargets` (#46)
* refactor(zod-validator): rename `VaildatorTypes` to `ValidatoerTargets`

* add changeset
2023-02-14 06:37:46 +09:00
Yusuke Wada 58e42aa8da
feat: introduce zod-validator (#16)
* feat: introduce zod-validator

* fixed `package.json`

* changeset
2023-01-02 00:03:44 +09:00