Releases: ajv-validator/ajv
Releases · ajv-validator/ajv
v6.7.0
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
Keyword "nullable" from OpenAPI spec
Replaced phantomjs with headless chrome
v6.5.0
v6.4.0
v6.3.0
v6.2.0
Parameter allowedValue
in the error of const
keyword (#713, @marshall007).
v6.1.0
v6.0.0
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" forid
keyword 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
uniqueItems
keyword to validate an array of same-type scalars in one pass - Keywords
uniqueItems
andcontains
are validated afteritems
and type coercion (withcoerceTypes
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
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.