Skip to content

Commit

Permalink
Merge c08c9be into 93fb84b
Browse files Browse the repository at this point in the history
  • Loading branch information
epoberezkin committed May 23, 2021
2 parents 93fb84b + c08c9be commit 650351f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,18 @@ Ajv with JSON Schema draft-04 support

[![build](https://github.com/ajv-validator/ajv-draft-04/actions/workflows/build.yml/badge.svg)](https://github.com/ajv-validator/ajv-draft-04/actions/workflows/build.yml)
[![npm](https://img.shields.io/npm/v/ajv-draft-04.svg)](https://www.npmjs.com/package/ajv-draft-04)
[![coverage](https://coveralls.io/repos/github/ajv-validator/ajv-draft-04/badge.svg?branch=master)](https://coveralls.io/github/ajv-validator/ajv-draft-04?branch=master)
[![Gitter](https://img.shields.io/gitter/room/ajv-validator/ajv.svg)](https://gitter.im/ajv-validator/ajv)
[![GitHub Sponsors](https://img.shields.io/badge/$-sponsors-brightgreen)](https://github.com/sponsors/epoberezkin)

## Usage

You need to install both ajv and this package (to allow upgrading ajv without upgrading this package):

```shell
npm i ajv ajv-draft-04
```

```javascript
// ESM/TypeScript import
import Ajv from "ajv-draft-04"
Expand All @@ -18,6 +25,8 @@ const Ajv = require("ajv-draft-04")
const ajv = new Ajv()
```

See [ajv site](https://ajv.js.org) for documentation.

## Tests

```bash
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"homepage": "https://github.com/ajv-validator/ajv-draft-04#readme",
"dependencies": {},
"peerDependencies": {
"ajv": "^8.0.0"
"ajv": "^8.5.0"
},
"peerDependenciesMeta": {
"ajv": {
Expand All @@ -51,7 +51,6 @@
"@types/node": "^14.10.1",
"@typescript-eslint/eslint-plugin": "^3.7.0",
"@typescript-eslint/parser": "^3.7.0",
"ajv": "^8.5.0",
"ajv-formats": "^2.0.0",
"eslint": "^7.5.0",
"eslint-config-prettier": "^6.11.0",
Expand Down

0 comments on commit 650351f

Please sign in to comment.