validator-koa-middleware
v0.1.3
Published
koa request validator using joi schema
Downloads
3
Readme
validator-koa-middleware
Middleware generator to koa flow to validate params, body and query object using joi schema.
Usage
const schema = joi.object().keys({
body: joi.object().keys({
key: joi.string()
}),
params: joi.object(),
query: joi.object()
});
const middleware = validater(schema);