removed peerDependency, closes #78
parent
cffb7c7f72
commit
06fd23217a
|
@ -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
|
- [asynchronous loading](#asynchronous-compilation) of referenced schemas during compilation
|
||||||
- "All errors" validation mode with [option allErrors](#options)
|
- "All errors" validation mode with [option allErrors](#options)
|
||||||
- [error messages with parameters](#validation-errors) describing error reasons to allow creating custom error messages
|
- [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
|
- [filtering data](#filtering-data) from additional properties
|
||||||
- NEW: [custom keywords](#defining-custom-keywords)
|
- 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)
|
- NEW: keywords `constant` and `contains` from [JSON-schema v5 proposals](https://github.com/json-schema/json-schema/wiki/v5-Proposals) with [option v5](#options)
|
||||||
|
|
|
@ -62,4 +62,4 @@ module.exports = function addKeyword(keyword, definition) {
|
||||||
function checkDataType(dataType) {
|
function checkDataType(dataType) {
|
||||||
if (!self.RULES.types[dataType]) throw new Error('Unknown type ' + dataType);
|
if (!self.RULES.types[dataType]) throw new Error('Unknown type ' + dataType);
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "ajv",
|
"name": "ajv",
|
||||||
"version": "2.0.1",
|
"version": "2.0.2",
|
||||||
"description": "Another JSON Schema Validator",
|
"description": "Another JSON Schema Validator",
|
||||||
"main": "lib/ajv.js",
|
"main": "lib/ajv.js",
|
||||||
"files": [
|
"files": [
|
||||||
|
@ -58,8 +58,5 @@
|
||||||
"pre-commit": "^1.1.1",
|
"pre-commit": "^1.1.1",
|
||||||
"require-globify": "^1.3.0",
|
"require-globify": "^1.3.0",
|
||||||
"watch": "^0.16.0"
|
"watch": "^0.16.0"
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"ajv-i18n": "^1.0.0"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue