koa-validation icon indicating copy to clipboard operation
koa-validation copied to clipboard

rule(like url & email) & required independent

Open uerbin opened this issue 9 years ago • 1 comments

when i just add url valid, but with emtpy param

yield this.validateBody({
   avatar: 'url'
});
this.request.body = {}

then it give The value provided is not a URL

uerbin avatar Nov 10 '16 09:11 uerbin

have you found a fix?

mintyPT avatar Jan 29 '18 01:01 mintyPT