Skip to content

matter-in-motion/validators.jsonschema

Repository files navigation

Matter In Motion. JSON Schema Validator

NPM Version NPM Downloads

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

  1. 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.