<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 (beta)](https://img.shields.io/npm/v/ajv/beta)](https://www.npmjs.com/package/ajv/v/7.0.0-beta.0)
[![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)
## Ajv v7 beta is released
[Ajv version 7.0.0-beta.0](https://github.com/ajv-validator/ajv/tree/v7-beta) is released with these changes:
- to reduce the mistakes in JSON schemas and unexpected validation results, [strict mode](./docs/strict-mode.md) is added - it prohibits ignored or ambiguous JSON Schema elements.
- to make code injection from untrusted schemas impossible, [code generation](./docs/codegen.md) is fully re-written to be safe.
- to simplify Ajv extensions, the new keyword API that is used by pre-defined keywords is available to user-defined keywords - it is much easier to define any keywords now, especially with subschemas.
- schemas are compiled to ES6 code (ES5 code generation is supported with an option).
- to improve reliability and maintainability the code is migrated to TypeScript.
**Please note**:
- the support for JSON-Schema draft-04 is removed - if you have schemas using "id" attributes you have to replace them with "\$id" (or continue using version 6 that will be supported until 02/28/2021).
- all formats are separated to ajv-formats package - they have to be explicitely added if you use them.
See [release notes](https://github.com/ajv-validator/ajv/releases/tag/v7.0.0-beta.0) for the details.
To install the new version:
```bash
npm install ajv@beta
```
See [Getting started with v7](https://github.com/ajv-validator/ajv/tree/v7-beta#usage) for code example.
## 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
没有合适的资源?快使用搜索试试~ 我知道了~
vue-i18n-op
共16332个文件
js:9769个
ts:2114个
map:987个
需积分: 8 0 下载量 152 浏览量
2022-07-14
08:14:02
上传
评论
收藏 244.26MB ZIP 举报
温馨提示
vue-i18n-op
资源详情
资源评论
资源推荐
收起资源包目录
vue-i18n-op (16332个子文件)
00c4585e28474d3e10778cc478724fea3a7415 147B
029a9f481a81609cc4378575c241ee1cc1e7e0 53B
05493733cad5519c0b92947a24a57d89444643 416B
088e8c261aca8ab440d1ed651baf238781ec00 79B
0b49345ea55a9b01d05ecb6096ace8b55b8989 124B
0ec3710b5310be3be30480a9098206d42d5b94 298B
he.1 3KB
jsesc.1 3KB
cssesc.1 2KB
104db7ce483667a8d7ca76803d17e8c355f786 129B
1085e9dcd5d4a824b2a670bed914eaf68b3faa 257B
108bc13e676a70336b9d48dcb59a0f7036cf2b 606B
10c6a45035b6573151ff6196e4bdea78deb75d 53B
11751202c5116389bd4ce31417ba49af7ba106 239B
126b5cfb17a306d42b6e9c5a5ee2900a7aba9e 117B
153a38a0ed7c98b7648508fec6dda35f6397c2 377B
1cb2260bfb553590b634d9d3c8868c461ab404 567B
1dee3d6a8673d18a9a25717273b466ba7d1244 29.67MB
24418e359fca42cec8922985da89ac5e70aafd 217B
2fcfc4e7da23a1930e4c78a0a5069daf51a7c4 723B
3387b16b10aec08f88e1911a3ded6de7145648 2KB
3475479d65b8aa2d8ae2eb09f0c71135f21482 769B
3629e647f5ddf82548912e337bea9826b434af 29B
36bd27c550f708f3c283ae2123c8bf25dad5e7 1KB
38ddb052797d15e041b4aea1b272b751669603 343B
3a18ef945c15dec4df36d7717cfe408c0fcb8b 650B
3e410d1bf69c71b2de53a26a7fb1c8b5e48b99 497B
3ef81431a63f8713866db7f882bb41cdb7e3b8 147B
40ed5e1534cfd51ae6baf76c3ad39c909cb6f4 203B
411e89ff265d14d3fa37a4ddb63349172f868e 5.28MB
47e50a64cfce5d4a426a3c446e735cae770029 88B
4894d7c566821ecad419b8ac44048a88a39d72 497B
49388013a44d15870da9d98356919519f67217 853B
49a5dfc1c83edb643e463bbdaa55b8d6200a84 444B
4e8041731ba9ba9cb9d5cb65d3cb0a6d1318e0 59B
4f2ed2757fdfbc9763d66a46ad1420fb1f9040 145B
51577f5be51bfc2ffe264fb3372e5b9dd40060 56KB
56d2efada33b25790af63b90fd3ef35104648b 311B
57c4f708f8ed0d7cafc9efac5e08a0ed2d2e05 293B
5af00b60fb18ce639591c73a04f0b7b7ae9683 185B
660f0342a00c849c2ec17632f38c1930ee1181 149KB
67efd5576a05c11bd168d14e42a086a5ac04de 518B
70bb4a68b10d6ce128296b83daa841418e80b9 498B
70ca43142de4edd37bd2a8b5e9a769b5c20a9d 191B
71cc5c2616cdc12d04a33833685d01e9db5ebe 613B
788272285ed4b9dbf1c06a194e071fd0bab839 441B
7b2619ce565d9f2bce981ab99b3c204170879a 53B
7b2c7ad948b825ad9cdb3e27ea3d2688813346 181B
7b67199b24976b727bff5581b76740933c7277 1.49MB
7b8c30694f83f3ae94fbee44b29a8a190652ea 53B
7c29c4b431efc12d4af5882aa057a766c15512 53B
8194d2c61082f3be7dcdeca2228e613c6c06db 1KB
82c4e1c0f0bebc469316f83c273192f56ae27f 259B
8340199ee137fedaf35021644498385fc46c4b 185B
83c102b79e867ccf130a9e35b2e88d6adf951e 497B
84838045daa7a1ebe7fe6237c47e1652b167e8 121B
865d114f0e3a58b916b9e804906da263ed5235 507B
8deea003988533ebf8f5014ba842fa96197810 1.12MB
93af25119298e4c0534d09b13899584c638522 2KB
97e79aa0c4471a9f40b3ccd5a3d10b283be63a 333B
99a638fec82804cd526dc36bb4c80f811b5f76 147B
9de29bb2d1d6434b8b29ae775ad8c2e48c5391 15B
9ec746bac6186f1627f362074f9ab5d0280364 184B
_mocha 185B
_mocha 19B
a296c2b7e3f7f44be2fdf61b6f87ee12d95291 34.81MB
a356aaccb8cd71abb970df6ccb476f3341871c 2KB
a8d1f052fb485fa3d2399bdf8c7ec8666f971a 189B
acorn 60B
acorn 18B
ad29869a5624136c109e1b4d9e49c798b93e04 357KB
add-braces 956B
openChrome.applescript 2KB
AUTHORS 203B
AUTHORS 152B
b350e74db69c786c726e0564695dbd7e855ff6 88B
b45b3ad2fa187c4f50dd63290ab16209d0d630 1.74MB
.babelrc 251B
.babelrc 68B
.babelrc 39B
.babelrc 30B
.babelrc 25B
README.md.bak 12KB
range.bnf 619B
range.bnf 619B
range.bnf 619B
range.bnf 619B
range.bnf 619B
range.bnf 619B
range.bnf 619B
range.bnf 619B
range.bnf 619B
range.bnf 619B
range.bnf 619B
range.bnf 619B
browserslist 22B
browserslist-lint 32B
.browserslistrc 24B
LICENSE.BSD 1KB
LICENSE.BSD 1KB
共 16332 条
- 1
- 2
- 3
- 4
- 5
- 6
- 164
胡橙汁
- 粉丝: 5
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0