JSON schema based validation for express routes. Validate req.body declaratively using JSON schemas. Uses tv4 to create body validation middelware.
Install
$ npm install --save body-schema
Usage
var bodySchema = ; var loginSchema = 'type': 'object' 'properties': 'username': 'type': 'string' 'password': 'type': 'string' 'required': 'username' 'password'; app;
License
MIT © Andrew Lavers