@matter-in-motion/validators.jsonschema
v1.0.0
Published
Matter in Motion Extension. JSON Schema validator
Downloads
2
Maintainers
Readme
Matter In Motion. JSON Schema Validator
Node.js framework for building applications (cli, server, etc...).
JSON Schema
(JSON Schema)[(http://json-schema.org)] validator extension for matter in motion framework. Adds Ajv as validators.jsonschema
with two plugins ajv-merge-patch and ajv-keywords
Installation
npm i @matter-in-motion/validators.jsonschema
Usage
- Add
validators.jsonschema
to your extensions in the settings.
const validator = app.require('validators.jsonschema');
const valid = validator.validate(schema, data);
Settings
All of the Ajv options
License: MIT.