koa-fluent-validation
Fluent, functional, and extendable validation for Koa 2 body, params, and query. Built on validator for base validations and filters.
Installation
$ npm i koa-fluent-validation
Requirements
- NodeJS >= 7.6
- For validating parameters, koa-router's implementation is used with
ctx.params
.
Usage
Simple App Example
const Koa = ;const bodyparser = ;const validation v f = ; const app = ; app;app; app; // simple post routeapp; app;
Documentation
For documentation see the wiki!
TODO
- [] Filter Tests