Ajv Versions Save

The fastest JSON schema Validator. Supports JSON Schema draft-04/06/07/2019-09/2020-12 and JSON Type Definition (RFC8927)

v8.7.1

2 years ago

Publish Ajv bundle for JSON Schema 2020-12 to cdnjs.com

v8.7.0

2 years ago

Update JSON Schema Test Suite. Change minContains: 0 now correctly allows empty array.

v8.6.3

2 years ago

Fix $ref resolution for schemas without $id (@rbuckton, #1725) Support standalone module import from ESM modules without using .default property (@bhvngt, #1757) Update code for breaking TS change - error in catch has type unknown (#1760)

v8.6.2

2 years ago

Fix JTD serialiser (#1691)

v8.6.1

2 years ago

Fix "not" keyword preventing validation of "allOf" and some other keywords (#1668)

v8.6.0

2 years ago

Track evaluated properties with patternProperties that have always valid schemas (e.g., true) (@P0lip, #1626) Option int32range to disable number range checking for int32 and uint32 type in JTD schemas

v8.5.0

3 years ago

Optimize validation code for const keyword with scalar values (@SoAsEr, #1561) Add option schemaId to support ajv-draft-04 - Ajv for JSON Schema drat-04.

v8.4.0

3 years ago

JSON Type Definition schema options:

  • parseDate: parse timestamp type as Date objects.
  • allowDate: non-standard - allow date without time with timestamp type.

v8.3.0

3 years ago

Typescript improvements:

  • better error reporting for JSONSchemaType in case strictNullChecks option is disabled (@erikbrinkman, #1583)
  • support missed boolean type in JTDDataType (@m00s, #1587) JTD timestamp validation option (@jrr, #1584). Docs corrections.

v8.2.0

3 years ago

Add JTDDataType to compile signature (@erikbrinkman, #1547) Improve JSONSchemaType for records (@erikbrinkman, #1564) Use rollup for browser bundles (@realityking, #1533) Docs corrections