<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
没有合适的资源?快使用搜索试试~ 我知道了~
基于物联网的智慧农业监测系统微信小程序端代码
共9561个文件
js:2282个
ts:935个
json:431个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 86 下载量 125 浏览量
2022-06-07
21:49:47
上传
评论 33
收藏 41.01MB ZIP 举报
温馨提示
基于物联网的智慧农业监测系统的微信小程序端代码,完成了智慧农业监测系统的微信小程序页面
资源推荐
资源详情
资源评论
收起资源包目录
基于物联网的智慧农业监测系统微信小程序端代码 (9561个子文件)
00329687b5d0b0c9dadee12e47881ef2196537 1KB
005cb0f141383af5b179ba0a9c3de0f4bfe8dc 1KB
00716d9da724af5d0a7b88afaedccfd0a9ba58 3KB
0075193eda10b126bcd8ba8d812cfe813fb113 183B
0089cd5dc6395ff8355fa52550af2427c8dbe7 105B
008ae09e4a8b8a517c874936613a1d421295ed 1KB
008d812285c5e9e5d122e371387042e02991c7 433B
0098e6da98ca9b161c984b474e6233248ca1ef 539B
009bc1301855215c3e9c0e7810d4fe53250fb7 980B
00a079691488138b4443d8a8b72677ddccd253 523B
00a2f37181823ef8500854e8bbe613fbc5215a 353B
00a9d42bce5b07e496f64bc54a4a983211dd2c 1KB
00ab3d10f8bb0ca4d34c90c876699a4c8048aa 342B
00b8ad480927635bdfcc134f7fdf26d5bcee1d 138B
00c979a11e518cc1f1939bf5f4aeddf2ab8a99 588B
00d9261e2f04f7405c7d1cc474f3969145a39c 821B
00df7198c17cf19b72233152648c15ab545fd1 697B
00f021be988ccbe5251e88750701983a6d7a7a 163B
00f42046e3ed9e2843388b2816e304b0ae3668 55B
00f56c55109f243b97419d9d759d6c1185c8b3 588B
0120efd408d058efb63654fa055c918042a58e 133B
01298398e4f75231dc7f7accfb95a8c9d8d5f3 113B
01366872a6dde4cce793540f213d40dd153b35 333B
013dd8d1ae2c1382fa9feb2094ed6c31d96638 163B
0155e2321f8ba5f30b9928be018c491d131b41 132B
0166c206c610aac78f792ec4afc7cc362b94f5 56B
016d23e97702862f34529a94dbde9448e7e1a5 632B
0184f7632d0fcbdca8b7f548acca021d65fcdc 432B
018eb19297bfc1475ab49b297a88bb907727b0 1.15MB
01a354b43789363a29db8b0ea11c196eb307c0 134B
01a949a961d354e9038f08c5fbc93cf98ede06 548B
01c0687478d573c27c7f5b7086813380d58645 474B
01c16cdd0bdf210a80965daab13cc48beb67ef 13KB
01e44a346d705686d933b725404a7e24e65758 125B
01e6ba03236dd9ff08ab37b35d8863b5bb0a41 25KB
01e7d1d383f96c5294271b585484785d61238b 2KB
01f28fefadc2a2c57223674d38a253185822d0 266B
02065c897e22ef3f060bff2abfbbcd7c3da0f6 135B
0209fca768a4cc0a00b8ff5e75381369b3ec06 366B
021bce2485575c2ca0796425de46a4a5deae12 82B
0222472cf75254c48a3a5f846a033842d73332 186B
022df52842a88ea6f4ea80861916596c2c816f 665B
023304952020e18126f4394435d20f1268e880 729B
023efcf88f5bbf3d6157803f03c94fd8a97c2a 712B
024abe72ae83e0327aeb9a66a1221c2b1bd0db 324B
025e8f0e1071fc1d510339c7cb72e31ae59a59 554B
025f4337341a75a95a22ae476c7f3b79d7794e 412B
027069956494b38e6d889d705818c7dbe93efe 3KB
028b804e3d5e4913a902a13a9108f3636e2d8b 1KB
02add20b581be471b8d17f887b8e8337070546 194B
02ccf8c0c8f7939837de64ba189d87ef7e74b2 558B
02dad65b44635181c22ea335bd6a75f74eee32 412B
02e452f8c4324d7c046f22ecf64d937b8bc516 3KB
02f8e8ac7b20d636f0bb2b37a4dab9f57ef1e0 750B
0301dfca13ffbe1b8d57ad749f3d8b3df9fb78 1KB
0325218db2913361b56efa1e9da7f14800fd14 461B
0332cd14ef73fff856b73f4c38330e85065b14 6KB
0345d0668163e5f7a3cd47701f02949e718d24 399B
0357f5a4ee3c3eb901483ecc7cdeb82de60f6e 206B
035af1721e3bdaaeb6251faf555760bbedf3e0 1KB
036061706a2d715e3b63976cbc404ee45c4c14 156B
0368675192785c97194c809ce6e605c1e39812 509B
036c081ec9536540ba5d9fb9b350ab89ca2461 1KB
0376542a7c2479ea3ecac47be959b64ff632bf 121B
039bf3a7d2266fcd6fdc25fb4d121442ccf5ce 390B
03c2a3684eb00202e32f05f8dd16fbf81b7d3d 308B
03cc2f1c92302439f8b3e055a3ade932195444 212B
03cc74e792e7cf9d739d5e5f512e50882865ba 525B
03db4277e43b87be6b5d7f308fe7644a8f21b7 369B
03e79a695c632216bb5e439cc1da90d6d2a8f2 774B
03fc37eabef8e55357ceec7951deac717d5dba 304B
04103146338694e2ba63d5706e5e8893d95552 179B
0411fee6a2fca9d9ab09558ca5bca13ba72376 176B
04144a14cc4f68210545769f5a23c03f808063 107B
041626c14c511ecc8b51b215e414d0401daa03 209B
042caa7d5916def7b11fd3a4e910ddd379ff0c 101B
043b75b958766a3880805dc4f19d70a4f167dd 2KB
043f4c248a035e7a4b87b76cb91b8504371e2a 1KB
0446c0976f6f71e2f51f78ac9035aa6483e4f7 198B
044fa21daa70b21359aa18e71bd98dec1b7a7b 207B
0455fa40d3cadbe1e9266b06698abf54c042ff 204B
0464376034c7d102457a9b3a8dc4ab2d708b0f 6KB
0467dc749d1f4feeb9af5ca33cd32e3a565cc3 855B
048c5e02a2eacacfc90c51e401cc9f046ece1a 118B
049480561b9ae35b41eeddfd6f92c60424e025 36B
04972751db886f3eb1ff26c076e4d8a097aee9 121B
04b376ec690207ca496bf429d1d819bd64841c 2KB
04b7ab411f5f72ff74343a88bc503ecc309033 663B
04be10f07bb4614ede2e80d3935191635d3831 345B
04ef01f473eca2825d6c46c291001a60932215 214B
04fe34078eb97f6f672985e747eb3706cfc4b5 384B
052c6319c78b8a2a53f2b6b3990e710e39af4c 143B
053a9041926e53648d68fbe85a8f71b591fe8e 323B
055283e4dbe8ab97a3e8043237ef4beffb77db 365B
05739ad36d82ccc1f4b4e5a879db3de1b9be7d 120B
0588fb0b4b5f41507b566058efd150f786bfaf 2KB
0591ae0f7f7abdeec88d3dddd1fedfde5b9c32 664B
059ef24728ac3f3bf7c5abadb40fe8569ed364 5KB
05d336aa148ea6f9768c00200a5a7322366fb3 117B
05d84f2465580372e64d8179ad2e1e99893e8a 188B
共 9561 条
- 1
- 2
- 3
- 4
- 5
- 6
- 96
Huang_xianlong
- 粉丝: 488
- 资源: 23
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
- 6
前往页