<img align="right" alt="Ajv logo" width="160" src="https://ajv.js.org/images/ajv_logo.png">
# Ajv: Another JSON Schema Validator
The fastest JSON Schema validator for Node.js and browser. Supports draft-04/06/07.
[![Build Status](https://travis-ci.org/ajv-validator/ajv.svg?branch=master)](https://travis-ci.org/ajv-validator/ajv)
[![npm](https://img.shields.io/npm/v/ajv.svg)](https://www.npmjs.com/package/ajv)
[![npm downloads](https://img.shields.io/npm/dm/ajv.svg)](https://www.npmjs.com/package/ajv)
[![Coverage Status](https://coveralls.io/repos/github/ajv-validator/ajv/badge.svg?branch=master)](https://coveralls.io/github/ajv-validator/ajv?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)
## Mozilla MOSS grant and OpenJS Foundation
[<img src="https://www.poberezkin.com/images/mozilla.png" width="240" height="68">](https://www.mozilla.org/en-US/moss/) [<img src="https://www.poberezkin.com/images/openjs.png" width="220" height="68">](https://openjsf.org/blog/2020/08/14/ajv-joins-openjs-foundation-as-an-incubation-project/)
Ajv has been awarded a grant from Mozilla’s [Open Source Support (MOSS) program](https://www.mozilla.org/en-US/moss/) in the “Foundational Technology” track! It will sponsor the development of Ajv support of [JSON Schema version 2019-09](https://tools.ietf.org/html/draft-handrews-json-schema-02) and of [JSON Type Definition](https://tools.ietf.org/html/draft-ucarion-json-type-definition-04).
Ajv also joined [OpenJS Foundation](https://openjsf.org/) – having this support will help ensure the longevity and stability of Ajv for all its users.
This [blog post](https://www.poberezkin.com/posts/2020-08-14-ajv-json-validator-mozilla-open-source-grant-openjs-foundation.html) has more details.
I am looking for the long term maintainers of Ajv – working with [ReadySet](https://www.thereadyset.co/), also sponsored by Mozilla, to establish clear guidelines for the role of a "maintainer" and the contribution standards, and to encourage a wider, more inclusive, contribution from the community.
## Please [sponsor Ajv development](https://github.com/sponsors/epoberezkin)
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:
- [GitHub sponsors page](https://github.com/sponsors/epoberezkin) (GitHub will match it)
- [Ajv Open Collective️](https://opencollective.com/ajv)
Thank you.
#### Open Collective sponsors
<a href="https://opencollective.com/ajv"><img src="https://opencollective.com/ajv/individuals.svg?width=890"></a>
<a href="https://opencollective.com/ajv/organization/0/website"><img src="https://opencollective.com/ajv/organization/0/avatar.svg"></a>
<a href="https://opencollective.com/ajv/organization/1/website"><img src="https://opencollective.com/ajv/organization/1/avatar.svg"></a>
<a href="https://opencollective.com/ajv/organization/2/website"><img src="https://opencollective.com/ajv/organization/2/avatar.svg"></a>
<a href="https://opencollective.com/ajv/organization/3/website"><img src="https://opencollective.com/ajv/organization/3/avatar.svg"></a>
<a href="https://opencollective.com/ajv/organization/4/website"><img src="https://opencollective.com/ajv/organization/4/avatar.svg"></a>
<a href="https://opencollective.com/ajv/organization/5/website"><img src="https://opencollective.com/ajv/organization/5/avatar.svg"></a>
<a href="https://opencollective.com/ajv/organization/6/website"><img src="https://opencollective.com/ajv/organization/6/avatar.svg"></a>
<a href="https://opencollective.com/ajv/organization/7/website"><img src="https://opencollective.com/ajv/organization/7/avatar.svg"></a>
<a href="https://opencollective.com/ajv/organization/8/website"><img src="https://opencollective.com/ajv/organization/8/avatar.svg"></a>
<a href="https://opencollective.com/ajv/organization/9/website"><img src="https://opencollective.com/ajv/organization/9/avatar.svg"></a>
## Using version 6
[JSON Schema draft-07](http://json-schema.org/latest/json-schema-validation.html) is published.
[Ajv version 6.0.0](https://github.com/ajv-validator/ajv/releases/tag/v6.0.0) that supports draft-07 is released. It may require either migrating your schemas or updating your code (to continue using draft-04 and v5 schemas, draft-06 schemas will be supported without changes).
__Please note__: To use Ajv with draft-06 schemas you need to explicitly add the meta-schema to the validator instance:
```javascript
ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-06.json'));
```
To use Ajv with draft-04 schemas in addition to explicitly adding meta-schema you also need to use option schemaId:
```javascript
var ajv = new Ajv({schemaId: 'id'});
// If you want to use both draft-04 and draft-06/07 schemas:
// var ajv = new Ajv({schemaId: 'auto'});
ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-04.json'));
```
## Contents
- [Performance](#performance)
- [Features](#features)
- [Getting started](#getting-started)
- [Frequently Asked Questions](https://github.com/ajv-validator/ajv/blob/master/FAQ.md)
- [Using in browser](#using-in-browser)
- [Ajv and Content Security Policies (CSP)](#ajv-and-content-security-policies-csp)
- [Command line interface](#command-line-interface)
- Validation
- [Keywords](#validation-keywords)
- [Annotation keywords](#annotation-keywords)
- [Formats](#formats)
- [Combining schemas with $ref](#ref)
- [$data reference](#data-reference)
- NEW: [$merge and $patch keywords](#merge-and-patch-keywords)
- [Defining custom keywords](#defining-custom-keywords)
- [Asynchronous schema compilation](#asynchronous-schema-compilation)
- [Asynchronous validation](#asynchronous-validation)
- [Security considerations](#security-considerations)
- [Security contact](#security-contact)
- [Untrusted schemas](#untrusted-schemas)
- [Circular references in objects](#circular-references-in-javascript-objects)
- [Trusted schemas](#security-risks-of-trusted-schemas)
- [ReDoS attack](#redos-attack)
- Modifying data during validation
- [Filtering data](#filtering-data)
- [Assigning defaults](#assigning-defaults)
- [Coercing data types](#coercing-data-types)
- API
- [Methods](#api)
- [Options](#options)
- [Validation errors](#validation-errors)
- [Plugins](#plugins)
- [Related packages](#related-packages)
- [Some packages using Ajv](#some-packages-using-ajv)
- [Tests, Contributing, Changes history](#tests)
- [Support, Code of conduct, License](#open-source-software-support)
## Performance
Ajv generates code using [doT templates](https://github.com/olado/doT) 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:
- [json-schema-benchmark](https://github.com/ebdrup/json-schema-benchmark) - 50% faster than the second place
- [jsck benchmark](https://github.com/pandastrike/jsck#benchmarks) - 20-190% faster
- [z-schema benchmark](https://rawgit.com/zaggino/z-schema/master/benchmark/results.html)
- [themis benchmark](https://cdn.rawgit.com/playlyfe/themis/master/benchmark/results.html)
Performance of different validators by [json-schema-benchmark](https://github.com/ebdrup/json-schema-benchmark):
[![performance](https://chart.googleapis.com/chart?chxt=x,y&cht=bhs&chco=76A4FB&chls=2.0&chbh=32,4,1&chs=600x416&chxl=-1:|djv|ajv|json-schema-validator-generator|jsen|is-my-json-valid|themis|z-schema|jsck|skeemas|json-schema-library|tv4&chd=t:100,98,72.1,66.8,50.1,15.1,6.1,3.8,1.2,0.7,0.2)](
没有合适的资源?快使用搜索试试~ 我知道了~
eclipse-jee-2020-09-R-win32-x86_64.zip
共9766个文件
js:3701个
jar:1022个
ts:777个
需积分: 0 68 下载量 67 浏览量
2020-10-05
20:16:41
上传
评论
收藏 381.8MB ZIP 举报
温馨提示
eclipse-jee-2020-09-R-win32-x86_64.zip
资源推荐
资源详情
资源评论
收起资源包目录
eclipse-jee-2020-09-R-win32-x86_64.zip (9766个子文件)
cssesc.1 2KB
epp.package.jee.executable.win32.win32.x86_64_4.17.0.20200910-1200 155KB
acorn 62B
ant 11KB
antRun 862B
.api_description 2KB
.api_description 386B
AUTHORS 203B
AUTHORS 152B
.babelrc 30B
ant.bat 7KB
antRun.bat 1KB
lcp.bat 1KB
splash.bmp 400KB
splash.bmp 395KB
range.bnf 619B
range.bnf 619B
range.bnf 619B
range.bnf 619B
LICENSE.BSD 1KB
LICENSE.BSD 1KB
LICENSE.BSD 1KB
LICENSE.BSD 1KB
ChangeLog 10KB
DefaultNexusIndexer.class 20KB
AbstractDebugAdapterLaunchShortcut.class 12KB
DefaultSearchEngine.class 12KB
NodeRunDAPDebugDelegate.class 12KB
DefaultIteratorResultSet.class 11KB
ChromeExecutableTab.class 11KB
AbstractRunHTMLDebugTab.class 10KB
ArtifactInfo.class 10KB
NpmLaunchTab.class 9KB
DefaultQueryCreator.class 8KB
NpmLaunchDelegate.class 8KB
NodeAttachDebugTab.class 8KB
RunProgramTab.class 7KB
DefaultScannerListener.class 7KB
ChromeRunDAPDebugDelegate.class 7KB
NexusIndexer.class 7KB
YAMLSchemaPreferencePage.class 7KB
MavenArtifactIdentifier.class 7KB
DefaultIndexerEngine.class 7KB
JSonLanguageServer.class 6KB
YAMLLanguageServer.class 6KB
ArtifactContext.class 6KB
FirefoxRunDABDebugDelegate.class 5KB
NodeAttachDebugDelegate.class 5KB
SelectionUtils.class 5KB
MavenSourceContainerResolver.class 5KB
AngularLanguageServer.class 4KB
HTMLLanguageServer.class 4KB
DefaultArtifactContextProducer.class 4KB
AbstractHTMLDebugDelegate.class 4KB
AttachTab.class 4KB
NodeRunDAPDebugDelegate$2.class 4KB
CSSLanguageServer.class 4KB
NodeRunDebugLaunchShortcut.class 4KB
DefaultScanner.class 4KB
JSTSLanguageServer.class 4KB
AbstractSearchRequest.class 4KB
MetaInfMavenScanner.class 4KB
YAMLLanguageServer$1.class 3KB
IndexerField.class 3KB
ChromeAttachTab.class 3KB
AbstractHTMLDebugAdapterLaunchShortcut.class 3KB
YAMLPreferencePage.class 3KB
IsNodeProjectPropertyTester.class 3KB
AddShemaGlobPatternDialog.class 3KB
UniqueArtifactFilterPostprocessor.class 3KB
NpmLaunchShortcut.class 3KB
RunFirefoxDebugTab.class 3KB
GroupedSearchRequest.class 3KB
RunChromeDebugTab.class 3KB
NodeRunDAPDebugDelegate$2$1.class 2KB
MavenArtifactIdentifier$1.class 2KB
ContributeHandler.class 2KB
Field.class 2KB
ChromeAttachDebugDelegate.class 2KB
FlatSearchRequest.class 2KB
FirefoxAttachTab.class 2KB
SearchEngine.class 2KB
ArtifactContext$ModelReader.class 2KB
IteratorSearchRequest.class 2KB
FirefoxAttachDebugDelegate.class 2KB
Messages.class 2KB
HTMLLaunchableAdapterFactory.class 2KB
PackageJSONAdapterFactory.class 2KB
ArtifactInfoRecord.class 2KB
ArtifactInfoGroup.class 2KB
UniqueGAArtifactFilterPostprocessor.class 2KB
AbstractMultiArtifactInfoFilter.class 2KB
ArtifactAvailablility.class 2KB
ScanningRequest.class 2KB
NodeRunDAPDebugDelegate$1.class 2KB
IteratorSearchResponse.class 2KB
MAVEN.class 2KB
ArtifactInfo$VersionComparator.class 2KB
TypeScriptPlugin.class 2KB
AndMultiArtifactInfoFilter.class 2KB
共 9766 条
- 1
- 2
- 3
- 4
- 5
- 6
- 98
资源评论
Hello�tomorrow?
- 粉丝: 73
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Jurassic Pack Vol. II Dinosaurs 侏罗纪包卷恐龙二号Unity游戏模型资源unitypackage
- Jurassic Pack Vol. III Dinosaurs 侏罗纪包卷恐龙三号Unity游戏模型资源unitypackag
- Ultimate Seating Controller 终极座椅控制器Unity游戏开发插件资源unitypackage
- 什么是人工智能-关于人工智能的相关介绍说明
- Figma Converter for Unity适用Unity的Figma转换器Unity游戏开发插件unitypackage
- Creepy Animatronic Anims 令人毛骨悚然的电子动画Unity游戏动画插件资源unitypackage
- Rankings & Leaderboards 排名和排行榜Unity游戏开发插件资源unitypackage
- Semantic Color Palette 语义调色板Unity游戏开发插件资源unitypackage
- Low Poly Nature:Lush and Diverse Environments低聚自然郁郁Unity低多边形模型资源
- voc数据集是什么-我们如何使用voc数据集
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功