ajv
8.20.0 · 24 Apr 2026MIT544M / weekRepositoryHomepagenpmAtom feed
6.15.0 is the newest release of 6.x.
In short
1 removed18 changed
- Removed
Removed deprecated
patternGroupskeyword
Security
2 advisories affect 6.0.0; 6.14.0 fixes them
- Moderateajv has ReDoS when using `$data` optionGHSA-2g4f-4pwh-qvx6 · 11 Feb 2026Fixed in 6.14.0
- ModeratePrototype Pollution in AjvGHSA-v88g-cgmw-v5xw · 10 Feb 2022Fixed in 6.12.3
Release note
Changes from v5.5.2
draft-07 support:
if/then/elsekeywords$commentkeywordDefault meta-schema is draft-07
Schema IDs
Only
$idkeyword is used as schema ID by default.schemaIdoption should be set to "id" or "auto" foridkeyword to be used.
See Options.
Formats
date,date-time,time: support leap year and leap secondjson-pointer: only validates a string format of JSON pointerjson-pointer-uri-fragment: to validate uri-fragment format of JSON pointer
Keyword changes
Improved algorithm for
uniqueItemskeyword to validate an array of same-type scalars in one passKeywords
uniqueItemsandcontainsare validated afteritemsand type coercion (withcoerceTypesoption)Additional error parameters for
oneOfkeyword- Removed
Removed deprecated
patternGroupskeyword Reserved annotation keywords:
examples,readOnly,writeOnly,contentEncoding,contentMediaType.
Other
Defaults are now assigned inside schemas of
then/elsekeywords.Option
$commentto log/pass to a function strings from$commentkeyword.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.