X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=.config%2Fcoc%2Fextensions%2Fnode_modules%2Fcoc-prettier%2Fnode_modules%2Ftable%2Fnode_modules%2Fajv%2FREADME.md;h=96b332667531ea4e2962e796d83319c33be48b73;hb=3be0a9efc698a9570a44456009afc6014812625a;hp=42f39bf16fbffb760883e77fc9b2c41e4f083b6b;hpb=3c06164f15bd10aed7d66b6314764a2961a14762;p=dotfiles%2F.git diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/table/node_modules/ajv/README.md b/.config/coc/extensions/node_modules/coc-prettier/node_modules/table/node_modules/ajv/README.md index 42f39bf1..96b33266 100644 --- a/.config/coc/extensions/node_modules/coc-prettier/node_modules/table/node_modules/ajv/README.md +++ b/.config/coc/extensions/node_modules/coc-prettier/node_modules/table/node_modules/ajv/README.md @@ -6,7 +6,7 @@ The fastest JSON validator for Node.js and browser. -Supports JSON Schema draft-06/07/2019-09/2020-12 (draft-04 is supported in [version 6](https://github.com/ajv-validator/ajv/tree/v6)) and JSON Type Definition [RFC8927](https://datatracker.ietf.org/doc/rfc8927/). +Supports JSON Schema draft-04/06/07/2019-09/2020-12 ([draft-04 support](https://ajv.js.org/json-schema.html#draft-04) requires ajv-draft-04 package) and JSON Type Definition [RFC8927](https://datatracker.ietf.org/doc/rfc8927/). [![build](https://github.com/ajv-validator/ajv/workflows/build/badge.svg)](https://github.com/ajv-validator/ajv/actions?query=workflow%3Abuild) [![npm](https://img.shields.io/npm/v/ajv.svg)](https://www.npmjs.com/package/ajv) @@ -15,9 +15,13 @@ Supports JSON Schema draft-06/07/2019-09/2020-12 (draft-04 is supported in [vers [![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) -## Platinum sponsors +## Ajv sponsors -[](https://www.mozilla.org)[](https://opencollective.com/ajv) +[Mozilla](https://www.mozilla.org)[](https://opencollective.com/ajv) + +[Microsoft](https://opensource.microsoft.com)[](https://opencollective.com/ajv)[](https://opencollective.com/ajv) + +[Retool](https://retool.com/?utm_source=sponsor&utm_campaign=ajv)[Tidelift](https://tidelift.com/subscription/pkg/npm-ajv?utm_source=npm-ajv&utm_medium=referral&utm_campaign=enterprise)[](https://opencollective.com/ajv)[](https://opencollective.com/ajv) ## Contributing @@ -66,6 +70,8 @@ Thank you. + + ## Performance @@ -87,8 +93,8 @@ Performance of different validators by [json-schema-benchmark](https://github.co - Ajv implements JSON Schema [draft-06/07/2019-09/2020-12](http://json-schema.org/) standards (draft-04 is supported in v6): - all validation keywords (see [JSON Schema validation keywords](https://ajv.js.org/json-schema.html)) - [OpenAPI](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md) extensions: - - NEW: keyword [discriminator](https://ajv.js.org/json-schema.md#discriminator). - - keyword [nullable](https://ajv.js.org/json-schema.md#nullable). + - NEW: keyword [discriminator](https://ajv.js.org/json-schema.html#discriminator). + - keyword [nullable](https://ajv.js.org/json-schema.html#nullable). - full support of remote references (remote schemas have to be added with `addSchema` or compiled to be available) - support of recursive references between schemas - correct string lengths for strings with unicode pairs @@ -113,7 +119,7 @@ Performance of different validators by [json-schema-benchmark](https://github.co ## Install -To install version 7: +To install version 8: ``` npm install ajv @@ -143,6 +149,11 @@ const schema = { additionalProperties: false, } +const data = { + foo: 1, + bar: "abc" +} + const validate = ajv.compile(schema) const valid = validate(data) if (!valid) console.log(validate.errors) @@ -154,7 +165,9 @@ Learn how to use Ajv and see more examples in the [Guide: getting started](https See [https://github.com/ajv-validator/ajv/releases](https://github.com/ajv-validator/ajv/releases) -**Please note**: [Changes in version 7.0.0](https://github.com/ajv-validator/ajv/releases/tag/v7.0.0) +**Please note**: [Changes in version 8.0.0](https://github.com/ajv-validator/ajv/releases/tag/v8.0.0) + +[Version 7.0.0](https://github.com/ajv-validator/ajv/releases/tag/v7.0.0) [Version 6.0.0](https://github.com/ajv-validator/ajv/releases/tag/v6.0.0).