0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-30 11:20:41 +01:00
Commit Graph

6 Commits

Author SHA1 Message Date
Yusuke Wada
594f30aa35
fix(validator): make "Types" work well (#545)
* fix(validator): make "Types" work well

* fix import statement
2022-09-21 07:55:29 +09:00
Yusuke Wada
a2cc1a01c2
feat: another idea of Validator Middleware (#535)
* feat: Another idea of validator middleware

* denoify

* set property value in constructor

* rename `option` to `options`

* add test for handling type error

* use `test` instead of `match`
2022-09-20 10:11:34 +09:00
Yusuke Wada
9c9e1c2356
feat(validator): add isBoolean and isNumber (#530) 2022-09-16 00:10:37 +09:00
Yusuke Wada
62e3292460
feat(validator): add isFalsy and isNotFalsy (#523) 2022-09-14 08:30:46 +09:00
Yusuke Wada
e2d704fd4f
fix(types): add types to middleware correctly (#521) 2022-09-14 08:17:20 +09:00
Yusuke Wada
46c6a8de5e
feat(middleware): introduce "built-in" Validator Middleware (#505)
* feat(middleware): introduce built-in Validator Middleware

* fixed type of `req.json()`

* Feat/builtin validator middleware another idea (#508)

* Enable overwriting of query/header data.

* Returns only verified data.

* rename `index.test.ts` to `middleware.test.ts`

* add `removeAdditional` option

* handling error that the JSON body is null

* tidy

* check is it string or not

* implement `isIn`

* enable validation the valies are duplicate

Co-authored-by: Taku Amano <taku@taaas.jp>
2022-09-13 07:54:06 +09:00