Packages

ajv

8.20.0 · 24 Apr 2026MIT544M / weekRepositoryHomepagenpmAtom feed

Your version

6.0.0

major7 Jan 2018Where it was published

6.15.0 is the newest release of 6.x.

In short

1 removed18 changed

  • Removed

    Removed deprecated patternGroups keyword

Security

2 advisories affect 6.0.0; 6.14.0 fixes them

Release note

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

    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.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.