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.checkBody('value').notEmpty('value is empty').toBoolean() #18

Open SjoerdZam opened 8 years ago

SjoerdZam commented 8 years ago

if I do this.checkBody('value').notEmpty('value is empty').toBoolean()

and the value passed in is a boolean of false. I get a "value is empty" returned.

Seems like it's not the behaviour you might want.

RocksonZeta commented 8 years ago

fixed @1.0.1 thanks