diff --git a/README.md b/README.md index 4f7d2ed..577e991 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ NB: [Upgrading to version 2.0.0](https://github.com/epoberezkin/ajv/releases/tag - [asynchronous loading](#asynchronous-compilation) of referenced schemas during compilation - "All errors" validation mode with [option allErrors](#options) - [error messages with parameters](#validation-errors) describing error reasons to allow creating custom error messages -- i18n error messages support with [ajv-i18n](https://github.com/epoberezkin/ajv-i18n) package +- i18n error messages support with [ajv-i18n](https://github.com/epoberezkin/ajv-i18n) package (version >= 1.0.0) - [filtering data](#filtering-data) from additional properties - NEW: [custom keywords](#defining-custom-keywords) - NEW: keywords `constant` and `contains` from [JSON-schema v5 proposals](https://github.com/json-schema/json-schema/wiki/v5-Proposals) with [option v5](#options) diff --git a/lib/keyword.js b/lib/keyword.js index 105ea0a..151483f 100644 --- a/lib/keyword.js +++ b/lib/keyword.js @@ -62,4 +62,4 @@ module.exports = function addKeyword(keyword, definition) { function checkDataType(dataType) { if (!self.RULES.types[dataType]) throw new Error('Unknown type ' + dataType); } -} +}; diff --git a/package.json b/package.json index 009efc1..05b454d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ajv", - "version": "2.0.1", + "version": "2.0.2", "description": "Another JSON Schema Validator", "main": "lib/ajv.js", "files": [ @@ -58,8 +58,5 @@ "pre-commit": "^1.1.1", "require-globify": "^1.3.0", "watch": "^0.16.0" - }, - "peerDependencies": { - "ajv-i18n": "^1.0.0" } }