Support for union types in JSONSchemaType (#1302, @erikbrinkman).
More ergonomic Ajv constructor export - no need to use .default
in .js
and .mjs
files (#1381).
Remove circular dependencies (#1399).
New syntax for strict
option (#1392). It can now be used as boolean/"log" (to set all strict mode restrictions) or as an object with properties schema
, number
, types
, tuples
and required
, the defaults are:
{
schema: true,
number: true,
types: "log",
tuples: "log",
required: false
}
Options strictTypes, strictTuples and strictRequired removed.