Fake JSON-Schema validator
It was created as an illustration that passing all tests from the "official" JSON-Schema-Test-Suite does not mean that the validator can be used - this one always returns true
in all cases not covered by the tests.
Use Ajv instead.
npm install fjv
The fastest validation call:
var Fjv = require('fjv');
var fjv = new Fjv;
var validate = fjv.compile(schema);
var valid = validate(data);
if (!valid) console.log(validate.errors);
or with less code
// ...
var valid = fjv.validate(schema, data);
if (!valid) console.log(fjv.errors);
// ...