All Projects → ajv-validator → Ajv

ajv-validator / Ajv

Licence: mit
The fastest JSON schema Validator. Supports JSON Schema draft-04/06/07/2019-09/2020-12 and JSON Type Definition (RFC8927)

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to Ajv

openui5-validator
A library to validate OpenUI5 fields
Stars: ✭ 17 (-99.84%)
Mutual labels:  json-schema, validator, ajv
express-json-validator-middleware
Express middleware for validating requests against JSON schema
Stars: ✭ 148 (-98.57%)
Mutual labels:  json-schema, ajv
finspec-spec
Multi-protocol, machine-readable specifications for financial services
Stars: ✭ 18 (-99.83%)
Mutual labels:  json-schema, validator
Maat
Validation and transformation library powered by deductive ascending parser. Made to be extended for any kind of project.
Stars: ✭ 27 (-99.74%)
Mutual labels:  json-schema, validator
Ajv Keywords
Custom JSON-Schema keywords for Ajv validator
Stars: ✭ 186 (-98.2%)
Mutual labels:  json-schema, validator
Validr
A simple, fast, extensible python library for data validation.
Stars: ✭ 205 (-98.02%)
Mutual labels:  json-schema, validator
schema
SpaceAPI JSON schema files.
Stars: ✭ 20 (-99.81%)
Mutual labels:  json-schema, validator
Schemasafe
A reasonably safe JSON Schema validator with draft-04/06/07/2019-09 support.
Stars: ✭ 67 (-99.35%)
Mutual labels:  json-schema, validator
Djv
Dynamic JSON Schema Validator - Supports draft-04/06
Stars: ✭ 281 (-97.28%)
Mutual labels:  json-schema, validator
Jsonschema
JSONSchema (draft04, draft06, draft07) Validation using Go
Stars: ✭ 261 (-97.48%)
Mutual labels:  json-schema, validator
Ajv Errors
Custom error messages in JSON-Schema for Ajv
Stars: ✭ 185 (-98.21%)
Mutual labels:  json-schema, validator
Formily
Alibaba Group Unified Form Solution -- Support React/ReactNative/Vue2/Vue3
Stars: ✭ 6,554 (-36.62%)
Mutual labels:  json-schema, validator
Ajv Cli
Use 'Another Json Validator' (ajv) from the command line
Stars: ✭ 148 (-98.57%)
Mutual labels:  json-schema, validator
another-json-schema
Another JSON Schema validator, simple & flexible & intuitive.
Stars: ✭ 48 (-99.54%)
Mutual labels:  json-schema, validator
Ajv I18n
Internationalised error messages for Ajv JSON-Schema validator
Stars: ✭ 98 (-99.05%)
Mutual labels:  json-schema, validator
ty
Here is a schema checker which can return well typed results. Tell your friends!
Stars: ✭ 21 (-99.8%)
Mutual labels:  json-schema, validator
Swagger Cli
Swagger 2.0 and OpenAPI 3.0 command-line tool
Stars: ✭ 321 (-96.9%)
Mutual labels:  json-schema, validator
Swagger Parser
Swagger 2.0 and OpenAPI 3.0 parser/validator
Stars: ✭ 710 (-93.13%)
Mutual labels:  json-schema, validator
Inspector
A tiny class validation library.
Stars: ✭ 64 (-99.38%)
Mutual labels:  validator
Unicorn
Unicorn - W3C's Unified Validator
Stars: ✭ 70 (-99.32%)
Mutual labels:  validator

Ajv logo

 

Ajv JSON schema validator

The fastest JSON validator for Node.js and browser.

Supports JSON Schema draft-04/06/07/2019-09/2020-12 (draft-04 support requires ajv-draft-04 package) and JSON Type Definition RFC8927.

build npm npm downloads Coverage Status Gitter GitHub Sponsors

Ajv sponsors

Mozilla

Microsoft

RetoolTideliftSimpleX

Contributing

More than 100 people contributed to Ajv, and we would love to have you join the development. We welcome implementing new features that will benefit many users and ideas to improve our documentation.

Please review Contributing guidelines and Code components.

Documentation

All documentation is available on the Ajv website.

Some useful site links:

Please sponsor Ajv development

Since I asked to support Ajv development 40 people and 6 organizations contributed via GitHub and OpenCollective - this support helped receiving the MOSS grant!

Your continuing support is very important - the funds will be used to develop and maintain Ajv once the next major version is released.

Please sponsor Ajv via:

Thank you.

Open Collective sponsors

Performance

Ajv generates code to turn JSON Schemas into super-fast validation functions that are efficient for v8 optimization.

Currently Ajv is the fastest and the most standard compliant validator according to these benchmarks:

Performance of different validators by json-schema-benchmark:

performance

Features

Install

To install version 8:

npm install ajv

Getting started

Try it in the Node.js REPL: https://runkit.com/npm/ajv

In JavaScript:

// or ESM/TypeScript import
import Ajv from "ajv"
// Node.js require:
const Ajv = require("ajv")

const ajv = new Ajv() // options can be passed, e.g. {allErrors: true}

const schema = {
  type: "object",
  properties: {
    foo: {type: "integer"},
    bar: {type: "string"}
  },
  required: ["foo"],
  additionalProperties: false,
}

const data = {
  foo: 1,
  bar: "abc"
}

const validate = ajv.compile(schema)
const valid = validate(data)
if (!valid) console.log(validate.errors)

Learn how to use Ajv and see more examples in the Guide: getting started

Changes history

See https://github.com/ajv-validator/ajv/releases

Please note: Changes in version 8.0.0

Version 7.0.0

Version 6.0.0.

Code of conduct

Please review and follow the Code of conduct.

Please report any unacceptable behaviour to [email protected] - it will be reviewed by the project team.

Security contact

To report a security vulnerability, please use the Tidelift security contact. Tidelift will coordinate the fix and disclosure. Please do NOT report security vulnerabilities via GitHub issues.

Open-source software support

Ajv is a part of Tidelift subscription - it provides a centralised support to open-source software users, in addition to the support provided by software maintainers.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].