0.0.1 • Published 10 years ago

schema-validator.js v0.0.1

Weekly downloads
6
License
-
Repository
-
Last release
10 years ago

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