Releases: ajv-validator/ajv
v8.1.0
unicodeRegExp option to not use RegExp unicode flag that may be incompatible with some environments (@asaid-0, #1530)
Fix JSONSchemaType (@erikbrinkman, #1541)
Extended error message for invalid keyword values (@pcwiek, #1542)
v8.0.5
Fix: add source code back to npm package, 8.0.4 is breaking ajv-cli (and possibly other things)
v8.0.4
Reduce npm bundle size
v8.0.3
Improve JSONSchemaType errors (@erikbrinkman, #1525)
v8.0.2
v8.0.1
Typescript: export function getData
(for ajv-errors)
v8.0.0
This document describes changes from v7.2.4 to v8.0.0.
If you are migrating from v6 you can use this document.
New features
Support JSON Schema draft-2020-12: prefixItems keyword and changed semantics of items keyword, dynamic recursive references.
OpenAPI discriminator keyword.
Improved JSON Type Definition support:
- errors consistent with JTD specification.
- error objects with additional properties to simplify error handling (see Error objects)
- internationalized error messages with ajv-i18n
TypeScript: support type unions in JSONSchemaType
Other changes / improvements
Node.js require works without .default property - see examples in Getting started
Reduce runtime dependency for standalone validation code
Fix resolution of $ref: "#"
when $id is present (#815)
Breaking changes
Option strict controls all strict mode restrictions
JSON Schema validation errors changes:
dataPath
property replaced withinstancePath
- "should" replaced with "must" in the messages
- property name is removed from "propertyName" keyword error message (it is still available in
error.params.propertyName
).
v7.2.4
v8.0.0-beta.4
Revert the change for strict mode options in v8.0.0-beta.1 to allow overrides to disable some options, not only to enable.
These strict mode options are available:
strictSchema - new, equivalent to strict: true
in v7, default true
strictNumbers - reinstated from v6, but with default true
strictTypes - same as in v7, default "log"
strictTuples - same as in v7, default "log"
strictTuples - same as in v7, default false
Option strict
sets all options above to the same value.
v8.0.0-beta.3
JSON Schema draft2012-12 support - prefixItems
, new semantics of items
, dynamicRef
and dynamicAnchor
Fixes: