joi-router
joi-router copied to clipboard
Configurable, input and output validated routing for koa
## Hi @aheckmann ๐ ### Changes: - remove .npmignore file โ - lint code through eslint ๐ ๐ป - update LICENSE ๐ - update test code ๐งช - improve coverage ๐ฏ...
The package `is-gen-fn`, which `koa-joi-router` has a dependency on, has an issue in its package.json resulting in a `DeprecationWarning` when `koa-joi-router` is used in node 16. >[DEP0128] DeprecationWarning: Invalid 'main'...
The is-gen-fn package causes a DeprecationWarning with Node 16: Uncaught DeprecationWarning: Invalid 'main' field in '/home/crowley/work/uniq/uniq-conferencier/node_modules/is-gen-fn/package.json' of 'yes'. Please either fix that or report it to the module author at...
Not sure which repo this goes in: ``` node_modules/@types/koa-joi-router/index.d.ts:29:53 - error TS2694: Namespace 'Application' has no exported member 'Next'. 29 type FullHandler = (ctx: Koa.Context, next: Koa.Next) => any; ~~~~...
OS: Max OS X 10.12.2 Node version: 8.6.0 npm version: 5.2.0 koa version: 2.4.1 koa-joi-router version: 5.0.0 joi version: 9.2.0 I have the following route: ```js module.exports = { method:...
https://github.com/koajs/joi-router/blob/9fa16b6b183fd095a790445e9bd35dd1e8751a4e/joi-router.js#L240 It throws error when I use `type: 'multipart'` with body schema. Should it be allowed to parse multipart/form like below? ``` form.append('name', 'name'); form.append('image', image); // jpeg image axios.post(url,...
It seems it would make sense to allow clients to request resources with either json, url encoded or form data. All three could be allowed by the API. Currently the...
Right now the only way to use the Joi middleware is to pass a configuration to the router. It would be more flexible to be able to use the middleware...
Using ```es6 validate: { type: "form", body: { start: Joi.date().iso().greater("now"), } } ``` The form input of `start="2018-10-10T10:00"` or `start="2018-10-10T10:00Z"` both lead to > `child "start" fails because ["start" must...
This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of...