ajv-validator/ajv
### [`v7.2.1`](https://togithub.com/ajv-validator/ajv/releases/v7.2.1)
[Compare Source](https://togithub.com/ajv-validator/ajv/compare/v7.2.0...v7.2.1)
Add [tests](https://togithub.com/nst/JSONTestSuite) and fix parsers compiled with `ajv.compileParser` from JTD schemas:
- fail on invalid JSON:
- trailing comma in arrays/objects
- invalid JSON numbers
- control characters in strings
- fix parsing of u-escaped characters
- do not fail on duplicate object keys (consistent with JSON.parse)
Compiled parsers are now:
- consistent with JSON.parse in case of invalid JSON
- only parse data that is valid for JTD schema
It is a breaking change for compiled parsers compared with 7.2.0 that was released earlier pn the same day.
### [`v7.2.0`](https://togithub.com/ajv-validator/ajv/releases/v7.2.0)
[Compare Source](https://togithub.com/ajv-validator/ajv/compare/v7.1.1...v7.2.0)
strictRequired option (off by default) - to log or fail if properties used in JSON Schema "required" are not defined in "properties" ([@PBug90](https://togithub.com/PBug90), [#1403](https://togithub.com/ajv-validator/ajv/issues/1403))
Compiled parsers (as fast as JSON.parse on valid JSON, but replace validation and fail much faster on invalid JSON) and serializers (10x+ faster than JSON.stringify) from JSON Type Definition schemas ([#1454](https://togithub.com/ajv-validator/ajv/issues/1454)) - see examples in [javascript](https://ajv.js.org/guide/getting-started.html#parsing-and-serializing-json) and [typescript](https://ajv.js.org/guide/typescript.html#type-safe-parsers-and-serializers)
Please note: there are fixes to compiled parsers in [7.2.1](https://togithub.com/ajv-validator/ajv/releases/tag/v7.2.1)
The website migrated to VuePress and documentation is restructured to make navigating Ajv documentation and learning easier - this is still work in progress, but already some improvement on the information structure. Any feedback/corrections would be very much appreciated!
Improved TypeScript support for JSONSchemaType:
- JTDSchemaType utility type to convert your data type into the type of JTD schema, to simplify its writing and to make sure it is consistent with your data type, with type inference support for ajv methods ([@erikbrinkman](https://togithub.com/erikbrinkman), [#1446](https://togithub.com/ajv-validator/ajv/issues/1446), [#1456](https://togithub.com/ajv-validator/ajv/issues/1456), [#1457](https://togithub.com/ajv-validator/ajv/issues/1457), [#1475](https://togithub.com/ajv-validator/ajv/issues/1475)) - see [example here](https://ajv.js.org/guide/typescript.html#utility-types-for-schemas)
- Alternatively, you can use JTDDataType utility type to convert your JTD schema type into the type of data ([@erikbrinkman](https://togithub.com/erikbrinkman), [#1458](https://togithub.com/ajv-validator/ajv/issues/1458)) - see [this example](https://ajv.js.org/guide/typescript.html#utility-type-for-jtd-data-type)
Other improvements by [@Fdawgs](https://togithub.com/Fdawgs) ([#1466](https://togithub.com/ajv-validator/ajv/issues/1466)), [@t7yang](https://togithub.com/t7yang) ([#1472](https://togithub.com/ajv-validator/ajv/issues/1472), [#1473](https://togithub.com/ajv-validator/ajv/issues/1473)), [@koba04](https://togithub.com/koba04) ([#1460](https://togithub.com/ajv-validator/ajv/issues/1460))
Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
7.1.1
->7.2.1
Release Notes
ajv-validator/ajv
### [`v7.2.1`](https://togithub.com/ajv-validator/ajv/releases/v7.2.1) [Compare Source](https://togithub.com/ajv-validator/ajv/compare/v7.2.0...v7.2.1) Add [tests](https://togithub.com/nst/JSONTestSuite) and fix parsers compiled with `ajv.compileParser` from JTD schemas: - fail on invalid JSON: - trailing comma in arrays/objects - invalid JSON numbers - control characters in strings - fix parsing of u-escaped characters - do not fail on duplicate object keys (consistent with JSON.parse) Compiled parsers are now: - consistent with JSON.parse in case of invalid JSON - only parse data that is valid for JTD schema It is a breaking change for compiled parsers compared with 7.2.0 that was released earlier pn the same day. ### [`v7.2.0`](https://togithub.com/ajv-validator/ajv/releases/v7.2.0) [Compare Source](https://togithub.com/ajv-validator/ajv/compare/v7.1.1...v7.2.0) strictRequired option (off by default) - to log or fail if properties used in JSON Schema "required" are not defined in "properties" ([@PBug90](https://togithub.com/PBug90), [#1403](https://togithub.com/ajv-validator/ajv/issues/1403)) Compiled parsers (as fast as JSON.parse on valid JSON, but replace validation and fail much faster on invalid JSON) and serializers (10x+ faster than JSON.stringify) from JSON Type Definition schemas ([#1454](https://togithub.com/ajv-validator/ajv/issues/1454)) - see examples in [javascript](https://ajv.js.org/guide/getting-started.html#parsing-and-serializing-json) and [typescript](https://ajv.js.org/guide/typescript.html#type-safe-parsers-and-serializers) Please note: there are fixes to compiled parsers in [7.2.1](https://togithub.com/ajv-validator/ajv/releases/tag/v7.2.1) The website migrated to VuePress and documentation is restructured to make navigating Ajv documentation and learning easier - this is still work in progress, but already some improvement on the information structure. Any feedback/corrections would be very much appreciated! Improved TypeScript support for JSONSchemaType: - JTDSchemaTypeRenovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.