https://github.com/ajv-validator/ajv-draft-04
Ajv JSON validator for JSON Schema draft-04
https://github.com/ajv-validator/ajv-draft-04
ajv draft-04 json schema validator
Last synced: 10 months ago
JSON representation
Ajv JSON validator for JSON Schema draft-04
- Host: GitHub
- URL: https://github.com/ajv-validator/ajv-draft-04
- Owner: ajv-validator
- License: mit
- Created: 2021-05-19T20:42:25.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-04T09:40:12.000Z (almost 3 years ago)
- Last Synced: 2025-08-09T01:16:09.670Z (10 months ago)
- Topics: ajv, draft-04, json, schema, validator
- Language: TypeScript
- Homepage:
- Size: 22.5 KB
- Stars: 11
- Watchers: 3
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# ajv-draft-04
Ajv with JSON Schema draft-04 support
[](https://github.com/ajv-validator/ajv-draft-04/actions/workflows/build.yml)
[](https://www.npmjs.com/package/ajv-draft-04)
[](https://coveralls.io/github/ajv-validator/ajv-draft-04?branch=master)
[](https://gitter.im/ajv-validator/ajv)
[](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"
// Node.js require:
const Ajv = require("ajv-draft-04")
const ajv = new Ajv()
```
See [ajv site](https://ajv.js.org) for documentation.
## Tests
```bash
npm install
git submodule update --init
npm test
```
## License
[MIT](https://github.com/ajv-validator/ajv-formats/blob/master/LICENSE)