Skip to content

Commit

Permalink
docs: v7.0.0-beta.3
Browse files Browse the repository at this point in the history
  • Loading branch information
epoberezkin committed Nov 5, 2020
1 parent 11e997b commit 413afe0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ The fastest JSON Schema validator for Node.js and browser. Supports draft-04/06/

## Ajv v7 beta is released

[Ajv version 7.0.0-beta.1](https://github.com/ajv-validator/ajv/tree/v7-beta) is released with these changes:
[Ajv version 7.0.0-beta.3](https://github.com/ajv-validator/ajv/tree/v7-beta) is released with these changes:

- added support of the new keywords from [draft 2019-09](https://json-schema.org/draft/2019-09/release-notes.html) of JSON-Schema specification: `unevaluatedProperties` and `unevaluatedItems`, `dependentRequired` and `dependentSchemas`, `maxContains` and `minContains`.
- 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 and to allow code optimization (compiled schema code size is reduced by more than 10%).
- 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.
- 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. [ajv-keywords](https://github.com/ajv-validator/ajv-keywords) package was updated to use the new API (in [v4.0.0-beta.0](https://github.com/ajv-validator/ajv-keywords/releases/tag/v4.0.0-beta.0))
- 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.

Expand Down

0 comments on commit 413afe0

Please sign in to comment.