Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@korzio/djv-draft-04

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@korzio/djv-draft-04

JSON-Schema draft-04 plugin for djv package

  • 2.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
47K
increased by0.99%
Maintainers
1
Weekly downloads
 
Created
Source

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

@korzio/djv-draft-04

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

Install

npm install @korzio/djv-draft-04

or

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

Usage

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.

env.useVersion('draft-04');

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.

References

Keywords

FAQs

Package last updated on 03 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc