Skip to content

Releases: ajv-validator/ajv

v6.7.0

13 Jan 17:58
Compare
Choose a tag to compare

Option useDefaults: "empty" to replace null and "" (empty strings) with default values (in addition to assigning defaults to missing and undefined properties).
Update draft-04 meta-schema to remove incorrect usage of "uri" format.

v6.6.0

29 Nov 07:22
Compare
Choose a tag to compare

Keyword "nullable" from OpenAPI spec
Replaced phantomjs with headless chrome

v6.5.0

08 May 20:34
Compare
Choose a tag to compare

With option passContext, the context is now passed in recursive/mutually recursive refs (@cvlab, #768).

v6.4.0

25 Mar 10:30
Compare
Choose a tag to compare

Support URNs in $id - core url package is replaced with url-js (#423, @sondrele).

v6.3.0

24 Mar 15:30
Compare
Choose a tag to compare

Typescript declarations updated to use PromiseLike (#717, @krenor)

v6.2.0

03 Mar 21:26
Compare
Choose a tag to compare

Parameter allowedValue in the error of const keyword (#713, @marshall007).

v6.1.0

29 Jan 21:27
Compare
Choose a tag to compare

A different error message for additionalProperties error with errorDataPath: 'property' option (#671, @lehni)

v6.0.0

07 Jan 15:34
797dfc8
Compare
Choose a tag to compare

Changes from v5.5.2

draft-07 support:

  • if/then/else keywords
  • $comment keyword
  • default meta-schema is draft-07

Schema IDs

  • only $id keyword is used as schema ID by default.
  • schemaId option should be set to "id" or "auto" for id keyword to be used.
    See Options.

Formats

  • date, date-time, time: support leap year and leap second
  • json-pointer: only validates a string format of JSON pointer
  • json-pointer-uri-fragment: to validate uri-fragment format of JSON pointer

Keyword changes

  • Improved algorithm for uniqueItems keyword to validate an array of same-type scalars in one pass
  • Keywords uniqueItems and contains are validated after items and type coercion (with coerceTypes option)
  • Additional error parameters for oneOf keyword
  • Removed deprecated patternGroups keyword
  • Reserved annotation keywords: examples, readOnly, writeOnly, contentEncoding, contentMediaType.

Other

  • Defaults are now assigned inside schemas of then/else keywords.
  • Option $comment to log/pass to a function strings from $comment keyword.
  • Async schemas can only be compiled to async functions, compilation to generator functions is no longer supported.
  • Documented convention for plugins.
  • Removed v5 meta-schema.
  • Removed nodent bundle, ajv-async bundle includes nodent now.

v6.0.0-rc.1

03 Dec 17:37
Compare
Choose a tag to compare
v6.0.0-rc.1 Pre-release
Pre-release

Only $id keyword is used as schema ID by default.
schemaId option should be set to "id" or "auto" for id keyword to be used.
See Options.

v6.0.0-rc.0

26 Nov 10:35
Compare
Choose a tag to compare
v6.0.0-rc.0 Pre-release
Pre-release

Changes from v5.4.0 and v5.5.0.
Defaults are now assigned inside schemas of then/else keywords.
Removed deprecated patternGroups keyword and v5 meta-schema.