# @korzio/djv-draft-04

> JSON-Schema draft-04 plugin for djv package

Latest version **2.0.1** (published 2018-09-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @korzio/djv-draft-04
pnpm add @korzio/djv-draft-04
yarn add @korzio/djv-draft-04
bun add @korzio/djv-draft-04
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2018-09-03 |
| First published | 2017-10-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | korzio@gmail.com |
| Maintainers | korzio |
| Keywords | JSON-Schema, djv, json, schema, validator, validate, draft-04 |

## Links

- npm: https://www.npmjs.com/package/@korzio/djv-draft-04
- npm.io page: https://npm.io/package/@korzio/djv-draft-04

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 2.0.1 (latest) — 2018-09-03
- 2.0.0 — 2017-10-05
- 2.0.0-alpha.0 — 2017-10-05

## README

[![Build Status](https://travis-ci.org/korzio/djv.svg?branch=master)](https://travis-ci.org/korzio/djv)
[![Join the chat at https://gitter.im/korzio/djv](https://badges.gitter.im/korzio/djv.svg)](https://gitter.im/korzio/djv?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

# @korzio/djv-draft-04 <a name="title"></a>

Dynamic JSON-Schema Validator Plugin to support *draft-04* version of [JSON-Schema specification](https://tools.ietf.org/html/draft-fge-json-schema-validation-00).

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](https://github.com/korzio/djv/).

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 <a name="content"></a>

* [djv](#title)
* [Table of contents](#content)
* [Install](#install)
* [Usage](#usage)
* [References](#references)

## Install <a name="install"></a>

```bash
npm install @korzio/djv-draft-04
```

or

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

## Usage <a name="usage"></a>

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

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

It is also possible to use `useVersion` method.

```javascript
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 <a name="references"></a>

* [djv](https://github.com/korzio/djv/)
* [JSON-Schema Specification](http://json-schema.org/)
* [JSON-Schema Benchmark](https://github.com/ebdrup/json-schema-benchmark)

---
_Source: https://npm.io/package/@korzio/djv-draft-04 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
