dessert-jsonschema
v1.0.2
Published
jsonschema but with WebAssembly
Downloads
2
Readme
Dessert jsonschema
============
jsonschema, but implemented in Rust and WebAssembly
Table of contents
Usage
var Validator = require('dessert-jsonschema').Validator;
var v = new Validator();
var instance = 4;
var schema = {"type": "number"};
console.log(v.validate(instance, schema));
Even simpler
var validate = require('dessert-jsonschema').validate;
console.log(validate(4, {"type": "number"}));
Installation
With npm:
npm install dessert-jsonschema
License
This software is licensed under the MIT license (see LICENSE).
Contributing
See CONTRIBUTING.md