schema-validator.js
v0.0.1
Published
## Installation
Downloads
5
Readme
JSON Schema Validator
Installation
node.js:
npm install schema-validator.js
browser:
component install schema/validator.js
Example
var valid = require('schema-validator.js');
var schema = { title: { required: true } };
var record = { };
assert(valid(record, schema) === false);
var record = { title: 'foo' };
assert(valid(record, schema) === true);
Licence
MIT