fjv

1.0.1 • Public • Published

fjv

Fake JSON-Schema validator

Build Status npm version

DO NOT USE IT!

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.

Install

npm install fjv

Usage

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);
// ...

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i fjv

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • esp