Closed piotr-s-brainhub closed 6 years ago
I fixed it in https://github.com/koajs/joi-router/pull/64
If you do not want joi-router
to parse the payload, do not specify validate.type
. See https://github.com/koajs/joi-router#handling-non-validated-input
But if I do not specify the validate.type
, the joi-router
throw an error says "validate.type must be declared when using validate.body"
@aheckmann that does not work.
NodeJS: 8.6.0 npm: 5.2.0 OS: Max OS X 10.12.2 koa: 2.4.1 koa-joi-router: 5.0.0 koa-bodyparser: 4.2.0 koa-body: 2.5.0
For the following app:
the request hangs. The same if
koa-body
used instead ifkoa-bodyparser
.I need a koa body parser to be able to use request body in the middlewares.