Closed piotr-s-brainhub closed 5 years ago
I'm using koa-joi-router, I have such a validation:
koa-joi-router
validate: { type: 'multipart', },
when ctx.request.body is defined, the validation passes even when it should fail so the simplest solution is to rename this field
ctx.request.body
Please add a test case for this change.
@fengmk2
I no longer need this PR because I fixed a bug in koa-joi-router
I'm using
koa-joi-router
, I have such a validation:when
ctx.request.body
is defined, the validation passes even when it should fail so the simplest solution is to rename this field