parameter validate middleware for koa, powered by parameter