v8.0.0-beta.0
Pre-release
Pre-release
JTD error objects:
schemaPath
andinstancePath
are consistent with JSON Type Definition RFC- added properties
keyword
andparams
,message
(can be removed withmessages: false
option) to error objects
JTD error messages can be translated with ajv-i18n v4.0.0-beta.0 - typescript: discriminated union type for JTD errors for type-safe error handling, errors need to be cast to
JTDErrorObject
type.
JSON Schema errors:
dataPath
property replaced withinstancePath
(update in your code!)- "should" replaced with "must" in the messages
- property name is removed from "propertyName" keyword error message (it is still available in
error.params.propertyName
).