koajs / bodyparser

Koa body parsing middleware
MIT License
1.31k stars 116 forks source link

customBodyFieldName #110

Closed piotr-s-brainhub closed 5 years ago

piotr-s-brainhub commented 5 years ago

I'm using koa-joi-router, I have such a validation:

  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

fengmk2 commented 5 years ago

Please add a test case for this change.

piotr-s-brainhub commented 5 years ago

@fengmk2

I no longer need this PR because I fixed a bug in koa-joi-router