schema-validator.js

0.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i schema-validator.js

Weekly Downloads

1

Version

0.0.1

License

none

Last publish

Collaborators

  • viatropos