0.0.1 • Published 10 years ago
schema-validator.js v0.0.1
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
0.0.1
10 years ago