RocksonZeta / koa-validate

validate koa request params and format request params
https://github.com/RocksonZeta/koa-validate
MIT License
284 stars 32 forks source link

this.validateBody is not validating the keys even keys are in body of request. #35

Open usamadanish22 opened 3 years ago

usamadanish22 commented 3 years ago

yield this.validateBody({ password: 'required', email_id: 'required' });

trying to validate the request body but when everything is in it, it still says Fields are required. everything is in it. node 12.20.0 koa-validation 0.1.9

usamadanish22 commented 3 years ago

+1

subhani-ali commented 3 years ago

+1