<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
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
小程序 毕业设计,小程序 课程设计,含有代码注释,新手也可看懂。毕业设计、期末大作业、课程设计、高分必看,下载下来,简单部署,就可以使用。 包含:项目源码、数据库脚本、软件工具等,该项目可以作为毕设、课程设计使用,前后端代码都在里面。 该系统功能完善、界面美观、操作简单、功能齐全、管理便捷,具有很高的实际应用价值。 项目都经过严格调试,确保可以运行!可以放心下载 1. 技术组成 前端: 小程序 后台框架:SSM/SpringBoot(如果有的话) 开发环境:idea,微信开发者工具 数据库:MySql(建议用 5.7 版本,8.0 有时候会有坑) 部署环境:Tomcat(建议用 7.x 或者 8.x 版本),maven
资源推荐
资源详情
资源评论
收起资源包目录
基于位置服务的图书馆座位预约管理系统(毕业设计,包括源码,数据库,教程).zip (8153个子文件)
0006096f81533c05334fd43e63b28892dc1d8f 379B
0019d32cae9c48334ccd7ebe25e3b7412cbe15 440B
003f40ead4eeff4cd794f4e51e3c10e7ddbc20 177B
0074723a541df841be4d23cfda1f9a57fc8bc4 298B
027ced03dd37a3a81fe44f3d89b9d53d3a0d23 241B
038c70a20308748ffd8c96307bdf444e732996 91B
0423271b7d2bceebdfe7553ef5c9e76e18683a 129B
043c9b7407fb102c87dd57f00f55f5c2597601 178B
04a64f841db20972de867492eb163a7fc0747e 248B
056a97dcbbd122975fb96daf5da445baa8ab83 134B
0577d08b79791a655e2e05a356ee2ad1939421 113B
05dfd5e7291707b988badb4aa4494fec133cb6 809B
06425b8973d514bcce7029c96b01663753600b 443B
06c10bcc32eee9bf08e85f7560573632429a12 326B
0899b5ec47109afb4386a852d618197ca614a0 141B
096533675e8f31e2531468881a37ca4351b83a 508B
09a99dcad5ecf9c5d5b0be3655d09a8aec198f 11KB
0bd713f1f03aaba7bd1f60d7216e5d9ce5117c 310B
0c2a95bb59454a5d314ee7ffbba245f5da0f19 137B
0c47023e8528ac84f9a3b57bf4167ea62b3804 79B
0ca4574c947bf52dc1d8763be432a87c9f3d27 544B
0dd9f1f3bceb0130f15910c34b9b9806699888 208B
0e3fac0a9ac2a1f931e14e014083bf68002c27 332B
0f6f4ef93296fa308399b252c274c3da82adb5 397B
0fbf739d7ec959140ae77bcde6509e3148f51b 206B
sshpk-conv.1 4KB
sshpk-conv.1 4KB
sshpk-sign.1 2KB
sshpk-sign.1 2KB
sshpk-verify.1 2KB
sshpk-verify.1 2KB
105c1e2429daa94aab432c41938a746bbbb0d4 143B
106262c74bb4f34ac17874a58da179df8e336b 692B
1166d8968653195781fdb98f6e26e54ac3e6f6 103B
11b2ef57c965ffb17332c2e8adeef59e72ce59 75B
1223ef8266b67224ffa5d32483f36af63b13ed 886B
141e732d6554b85d5d8ace3da6b4d1f734e813 135B
144ce259df4c7071d93630301d870240a57e97 187B
1452946f2cff8bf7c3fa9f6d00e5299e1a6483 30KB
157f33500772b63eddde47fa78d8ebfe59e5d4 95B
1587d3271f624d25519edfd0efd3919624c2df 631B
1609f61cb72acd50b0a4f3c918a11db3de891b 906B
1669dfe23c773785808ce2062c0423458b0e95 260KB
167345e6fe069ed9cc99174394c0003441363a 309B
1697badf25ca5e2b1e3594b97df20c857431ba 606B
172ffded119fa0554082feca2b0458aefdac3a 137B
17b7d20f2d7f88988d86c03f4b1f5ae52d29a0 565B
17d4901c14b770433e77c431232af4dea36225 61B
17d5769ccc6e88db9ae86d651c0e8334925bed 83B
17fe5e33a2b0a10d35590f6f822404a7def554 345B
1884272300844069609c3b462f13d5e9fe9f46 137B
19a0f915a8a88531adf4212fd1036485335014 390B
19e4c9f1d1aab9831ba0640eb68a9ebc87c1f5 134B
19f2f455f8f2e4eb3dcee7bbf1c61e71f4995b 47B
1a492f343d39ea1e8566bc58cd40226441efe5 330B
1bbcbe5f06ee359eae3e939750d049bbfdc678 431B
1c93f17855059f840d398805cb8115138ac7f0 612B
1d4d0d0fcf8fe0172cf984a99d3ba4ae4bcda2 136B
1d8276438ce31d9d43de2ee13b20c2798970ce 330B
1dbda2e953265243d0644e3d7695786eb67e58 273B
1ef0ff29db82166b31568da8db8f04fbe61ae1 273B
1f65c4ca63e2f69b357443404ef53a3123235a 53B
1fe5716c467983868dc07c9e96721b9cc8b60a 203B
2022569011249d1d1490721354b63ee2d4e7b7 131B
21e7dc55b497a0bfd3906f55b26fa218aa9302 134B
2208310285bd21c08c0acd73bcca870cfc648d 140B
222ba74cc1239acd1a000020e9880f01622ad6 498B
2245f95fa9da195c83d65203408451d1f36136 404B
22874686c19fb828e0e24584cde9d574800f0e 1KB
228feede8a7ad7f054222204bede21a833368a 120B
238ed35437e2eccf879a96c263a07cf7784b6b 763B
25211dd33641c77582e41c3d73ae12db1f2984 515B
261275f65d685baeb6b7588e8e252d13c8c69e 888B
28ff2253a933f0d9b69cec6ee63e2067ce4e83 375B
297f7130173c970c9defb24482a8baba018eb6 75B
2a21b240e2ed8e66f277c7e0b73ed262ea113e 205B
2a57b23235205aee2e41d34d114702c1725cd2 381B
2aa8df4e756b5380d5efc4d91b2f88c89be86d 204B
2b1bc80c63d36b8855245718ddd34b612acafa 291B
2b6b60d7a5ae1eeddb7af74a27c41d925059fb 370B
2bc9fdf51e6aeff866d29c1b6d4a4221319262 140B
2cfc3ad7a4e64b36c755c042d80fe6db224575 50B
2e8f074f59bf894841d22d878bd3595a587d77 202B
2ef2b7ae1f5957d734f26162e7098f7c3c63a4 137B
2f221bf79733be6635bafaaeb9feb842659fd6 183B
2fe3dfe3659714e5fedbf89a97dff67f8806ce 142B
3007c8f89b2af93f915a32dd200decf3b40b54 134B
3077c753e0d68f5cc2e50ba2a02d14b1733154 212B
30e5d9d7498a5409716cbcc023570a1f3853b8 133B
317ffc89ed4ddfc3e70c978b88b66e75064fb5 84B
32fe49b8589a22f5f8cd5d449eecbe1336cad6 120B
33dbf0994f8d117381db0ebe51ba1ccc31474b 121B
347027040e027379c022594e1f9650bdc608f8 138B
348ced92c192e7cdb37b4c23ec97c73dc50d15 55B
34bd70425485f79cbf388c9ca4a00287ff15d3 56B
34eaff6ab25689694ba053177650c7d0bd39f2 871B
34f8d54974f3aeed3b0e5f4de96b31c8a739d6 452B
357ae0cc03366703f67e7f26886a6e0b1caaea 91B
35af0699ccec004cbe685ef938cd2d63ea7037 43B
35f9336916dc1309442bdeebd179ef77b97dc5 79B
共 8153 条
- 1
- 2
- 3
- 4
- 5
- 6
- 82
资源评论
程序员徐师兄
- 粉丝: 2072
- 资源: 2883
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 矩阵变换器驱动永磁同步电机MATLAB仿真:高效性能与完美结果展示,矩阵变器带永磁同步电机MATLAB仿真,其他仿真模型也可,仿真结果非常完美 ,矩阵变换器; 永磁同步电机; MATLAB仿真; 仿真
- 海洋光学光谱仪定制采集分析与控制软件:自动获取参数、实时光谱测量、数据存储与功能定制支持,广泛应用于各领域光谱探测与分析,labview定制化开发海洋光学光谱仪光谱采集分析与控制软件,支持所有的海洋光
- libquvi-devel-0.4.1-5.el7.x64-86.rpm.tar.gz
- libquvi-scripts-0.4.10-3.el7.x64-86.rpm.tar.gz
- librabbitmq-0.8.0-3.el7.x64-86.rpm.tar.gz
- librabbitmq-devel-0.8.0-3.el7.x64-86.rpm.tar.gz
- librabbitmq-examples-0.8.0-3.el7.x64-86.rpm.tar.gz
- libraw1394-2.1.0-2.el7.x64-86.rpm.tar.gz
- libraw1394-devel-2.1.0-2.el7.x64-86.rpm.tar.gz
- librdkafka-0.11.4-1.el7.x64-86.rpm.tar.gz
- librdkafka-devel-0.11.4-1.el7.x64-86.rpm.tar.gz
- librdmacm-22.4-6.el7-9.x64-86.rpm.tar.gz
- librdmacm-utils-22.4-6.el7-9.x64-86.rpm.tar.gz
- libref-array-0.1.5-32.el7.x64-86.rpm.tar.gz
- libref-array-devel-0.1.5-32.el7.x64-86.rpm.tar.gz
- 三菱与三晶变频器5U通讯详解:从接线到应用实战,全方位掌握MODBUS通讯技术,三菱跟三晶变频器通讯 5U通讯 很多人想接触5U 485通讯,但苦于5U PLC属于中端技术,对于不懂通讯的人是比较难掌
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功