JSON-Schema draft-04 plugin for djv package


2.0.13 years ago4 years agoMinified + gzip package size for @korzio/djv-draft-04 in KB


Build Status Join the chat at https://gitter.im/korzio/djv


Dynamic JSON-Schema Validator Plugin to support draft-04 version of JSON-Schema specification.

Currently the djv package supports JSON-Schema v6 and v4. Since version 2.0.0 it uses v6 by default. @korzio/djv-draft-04 package intent is to provide support for v4 for the djv package.

Please check the main package documentation.

Version of the plugin is syncronized with the djv, as any major change in the main repo should point to plugin upgrade.

Table of contents


npm install @korzio/djv-draft-04


<script src="@korzio/djv-draft-04.js"></script>


To use the v4 directly in the djv package specify version option when creating environment.

const env = new djv({ version: 'draft-04' });

It is also possible to use useVersion method.


The djv will require draft-04 plugin implicitly. Be careful as once the environment is modified, it will not be able to validate different versions of JSON-Schema.


If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.