{"_id":"ajv-errors","_rev":"110952","name":"ajv-errors","description":"Custom error messages in JSON Schemas for Ajv validator","dist-tags":{"beta":"2.0.0-beta.0","latest":"3.0.0"},"maintainers":[{"name":"esp","email":""}],"time":{"modified":"2021-06-03T10:42:34.000Z","created":"2017-03-05T11:40:42.016Z","3.0.0":"2021-03-27T22:58:27.086Z","2.0.1":"2021-03-10T21:17:23.906Z","2.0.0":"2020-12-15T21:01:17.375Z","2.0.0-beta.0":"2020-11-22T13:04:13.703Z","1.0.1":"2018-12-09T20:44:23.016Z","1.0.0":"2017-05-27T17:59:41.038Z","0.5.0":"2017-05-27T15:34:53.768Z","0.4.0":"2017-05-09T21:46:40.263Z","0.3.0":"2017-05-09T19:14:33.951Z","0.2.0":"2017-05-01T16:32:10.431Z","0.1.2":"2017-04-30T20:24:16.937Z","0.1.1":"2017-04-30T19:36:45.272Z","0.1.0":"2017-04-30T18:47:58.032Z","0.0.1":"2017-03-05T11:40:42.016Z"},"users":{"esilva2902":true,"sopov":true},"author":"","repository":{"type":"git","url":"git+https://github.com/epoberezkin/ajv-errors.git"},"versions":{"3.0.0":{"name":"ajv-errors","version":"3.0.0","description":"Custom error messages in JSON Schemas for Ajv validator","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"rm -rf dist && tsc","eslint":"eslint \"src/**/*.*s\" \"spec/**/*.*s\"","prettier:write":"prettier --write \"./**/*.{json,ts,js}\"","prettier:check":"prettier --list-different \"./**/*.{json,ts,js}\"","test-spec":"jest \"spec/*.ts\"","test-cov":"jest \"spec/*.ts\" --coverage","test":"npm run prettier:check && npm run eslint && npm run build && npm run test-cov","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/epoberezkin/ajv-errors.git"},"keywords":["ajv","json-schema","validator","error","messages"],"author":"","license":"MIT","bugs":{"url":"https://github.com/epoberezkin/ajv-errors/issues"},"homepage":"https://github.com/epoberezkin/ajv-errors#readme","peerDependencies":{"ajv":"^8.0.1"},"devDependencies":{"@ajv-validator/config":"^0.3.0","@types/jest":"^26.0.15","@types/node":"^14.14.7","@typescript-eslint/eslint-plugin":"^4.7.0","@typescript-eslint/parser":"^4.7.0","ajv":"^8.0.1","eslint":"^7.2.0","eslint-config-prettier":"^7.0.0","husky":"^5.1.3","jest":"^26.6.3","lint-staged":"^10.5.1","prettier":"^2.1.2","ts-jest":"^26.4.4","typescript":"^4.0.5"},"prettier":"@ajv-validator/config/prettierrc.json","husky":{"hooks":{"pre-commit":"lint-staged && npm test"}},"lint-staged":{"*.{json,yaml,js,ts}":"prettier --write"},"gitHead":"7efe8c29c3ea461eef29335e0199742dbc18e791","_id":"ajv-errors@3.0.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"shasum":"e54f299f3a3d30fe144161e5f0d8d51196c527bc","size":13054,"noattachment":false,"key":"/ajv-errors/-/ajv-errors-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ajv-errors/download/ajv-errors-3.0.0.tgz"},"_npmUser":{"name":"esp","email":"e.poberezkin@me.com"},"directories":{},"maintainers":[{"name":"esp","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ajv-errors_3.0.0_1616885906932_0.28464778966165705"},"_hasShrinkwrap":false,"publish_time":1616885907086,"_cnpm_publish_time":1616885907086},"2.0.1":{"name":"ajv-errors","version":"2.0.1","description":"Custom error messages in JSON-Schema for Ajv validator","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"rm -rf dist && tsc","eslint":"eslint \"src/**/*.*s\" \"spec/**/*.*s\"","prettier:write":"prettier --write \"./**/*.{json,ts,js}\"","prettier:check":"prettier --list-different \"./**/*.{json,ts,js}\"","test-spec":"jest \"spec/*.ts\"","test-cov":"jest \"spec/*.ts\" --coverage","test":"npm run prettier:check && npm run eslint && npm run build && npm run test-cov","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/epoberezkin/ajv-errors.git"},"keywords":["ajv","json-schema","validator","error","messages"],"author":"","license":"MIT","bugs":{"url":"https://github.com/epoberezkin/ajv-errors/issues"},"homepage":"https://github.com/epoberezkin/ajv-errors#readme","peerDependencies":{"ajv":"^7.0.0"},"devDependencies":{"@ajv-validator/config":"^0.3.0","@types/jest":"^26.0.15","@types/node":"^14.14.7","@typescript-eslint/eslint-plugin":"^4.7.0","@typescript-eslint/parser":"^4.7.0","ajv":"^7.0.0","eslint":"^7.2.0","eslint-config-prettier":"^7.0.0","husky":"^5.1.3","jest":"^26.6.3","lint-staged":"^10.5.1","prettier":"^2.1.2","ts-jest":"^26.4.4","typescript":"^4.0.5"},"prettier":"@ajv-validator/config/prettierrc.json","husky":{"hooks":{"pre-commit":"lint-staged && npm test"}},"lint-staged":{"*.{json,yaml,js,ts}":"prettier --write"},"gitHead":"623c07b3dab96482d66fd592e47d74c4510b5d8a","_id":"ajv-errors@2.0.1","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"shasum":"af5a199a0de65e6c5be738e108ad480578898a9f","size":13040,"noattachment":false,"key":"/ajv-errors/-/ajv-errors-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ajv-errors/download/ajv-errors-2.0.1.tgz"},"_npmUser":{"name":"esp","email":"e.poberezkin@me.com"},"directories":{},"maintainers":[{"name":"esp","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ajv-errors_2.0.1_1615411043722_0.4779803299011609"},"_hasShrinkwrap":false,"publish_time":1615411043906,"_cnpm_publish_time":1615411043906},"2.0.0":{"name":"ajv-errors","version":"2.0.0","description":"Custom error messages in JSON-Schema for Ajv validator","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"rm -rf dist && tsc","eslint":"eslint \"src/**/*.*s\" \"spec/**/*.*s\"","prettier:write":"prettier --write \"./**/*.{md,json,ts,js}\"","prettier:check":"prettier --list-different \"./**/*.{md,json,ts,js}\"","test-spec":"jest \"spec/*.ts\"","test-cov":"jest \"spec/*.ts\" --coverage","test":"npm run prettier:check && npm run eslint && npm run build && npm run test-cov","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/epoberezkin/ajv-errors.git"},"keywords":["ajv","json-schema","validator","error","messages"],"author":"","license":"MIT","bugs":{"url":"https://github.com/epoberezkin/ajv-errors/issues"},"homepage":"https://github.com/epoberezkin/ajv-errors#readme","peerDependencies":{"ajv":"^7.0.0"},"devDependencies":{"@ajv-validator/config":"^0.3.0","@types/jest":"^26.0.15","@types/node":"^14.14.7","@typescript-eslint/eslint-plugin":"^4.7.0","@typescript-eslint/parser":"^4.7.0","ajv":"^7.0.0","eslint":"^7.2.0","eslint-config-prettier":"^7.0.0","husky":"^4.3.0","jest":"^26.6.3","lint-staged":"^10.5.1","pre-commit":"^1.2.2","prettier":"^2.1.2","ts-jest":"^26.4.4","typescript":"^4.0.5"},"prettier":"@ajv-validator/config/prettierrc.json","husky":{"hooks":{"pre-commit":"lint-staged && npm test"}},"lint-staged":{"*.{md,json,yaml,js,ts}":"prettier --write"},"gitHead":"47a40b5c68a500315188d41e1102ce6505528293","_id":"ajv-errors@2.0.0","_nodeVersion":"14.15.1","_npmVersion":"6.14.8","dist":{"shasum":"d48231d8de44bf52c517bbfcb298bb628ead4f89","size":13007,"noattachment":false,"key":"/ajv-errors/-/ajv-errors-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ajv-errors/download/ajv-errors-2.0.0.tgz"},"_npmUser":{"name":"esp","email":"e.poberezkin@me.com"},"directories":{},"maintainers":[{"name":"esp","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ajv-errors_2.0.0_1608066077227_0.7667282838683316"},"_hasShrinkwrap":false,"publish_time":1608066077375,"_cnpm_publish_time":1608066077375},"2.0.0-beta.0":{"name":"ajv-errors","version":"2.0.0-beta.0","description":"Custom error messages in JSON-Schema for Ajv validator","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"rm -rf dist && tsc","eslint":"eslint \"src/**/*.*s\" \"spec/**/*.*s\"","prettier:write":"prettier --write \"./**/*.{md,json,ts,js}\"","prettier:check":"prettier --list-different \"./**/*.{md,json,ts,js}\"","test-spec":"jest \"spec/*.ts\"","test-cov":"jest \"spec/*.ts\" --coverage","test":"npm run eslint && npm run build && npm run test-cov","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/epoberezkin/ajv-errors.git"},"keywords":["ajv","json-schema","validator","error","messages"],"author":"","license":"MIT","bugs":{"url":"https://github.com/epoberezkin/ajv-errors/issues"},"homepage":"https://github.com/epoberezkin/ajv-errors#readme","peerDependencies":{"ajv":"^7.0.0-beta.7"},"devDependencies":{"@ajv-validator/config":"^0.3.0","@types/jest":"^26.0.15","@types/node":"^14.14.7","@typescript-eslint/eslint-plugin":"^4.7.0","@typescript-eslint/parser":"^4.7.0","ajv":"^7.0.0-beta.7","eslint":"^7.2.0","eslint-config-prettier":"^6.15.0","husky":"^4.3.0","jest":"^26.6.3","lint-staged":"^10.5.1","pre-commit":"^1.2.2","prettier":"^2.1.2","ts-jest":"^26.4.4","typescript":"^4.0.5"},"prettier":"@ajv-validator/config/prettierrc.json","husky":{"hooks":{"pre-commit":"lint-staged && npm test"}},"lint-staged":{"*.{md,json,yaml,js,ts}":"prettier --write"},"readmeFilename":"README.md","gitHead":"19fac02dda893fc940bd86deb6fb09b0b14272aa","_id":"ajv-errors@2.0.0-beta.0","_nodeVersion":"14.14.0","_npmVersion":"6.14.9","dist":{"shasum":"400b9e8e574e353ad1d4e234c6119da4a0aec1c0","size":12916,"noattachment":false,"key":"/ajv-errors/-/ajv-errors-2.0.0-beta.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ajv-errors/download/ajv-errors-2.0.0-beta.0.tgz"},"_npmUser":{"name":"esp","email":"e.poberezkin@me.com"},"directories":{},"maintainers":[{"name":"esp","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ajv-errors_2.0.0-beta.0_1606050253498_0.754455729832824"},"_hasShrinkwrap":false,"publish_time":1606050253703,"_cnpm_publish_time":1606050253703},"1.0.1":{"name":"ajv-errors","version":"1.0.1","description":"Custom error messages in JSON-Schema for Ajv validator","main":"index.js","scripts":{"build":"node node_modules/ajv/scripts/compile-dots.js node_modules/ajv/lib lib","eslint":"eslint *.js spec","test-spec":"mocha spec/*.spec.js -R spec","test-cov":"nyc npm run test-spec","test":"npm run eslint && npm run build && npm run test-cov","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/epoberezkin/ajv-errors.git"},"keywords":["ajv","json-schema","validator","error","messages"],"author":"","license":"MIT","bugs":{"url":"https://github.com/epoberezkin/ajv-errors/issues"},"homepage":"https://github.com/epoberezkin/ajv-errors#readme","peerDependencies":{"ajv":">=5.0.0"},"devDependencies":{"ajv":"^5.0.0","coveralls":"^2.11.16","dot":"^1.1.1","eslint":"^3.17.0","glob":"^7.1.1","js-beautify":"^1.6.12","mocha":"^3.2.0","nyc":"^10.1.2","pre-commit":"^1.2.2"},"nyc":{"exclude":["**/spec/**","node_modules"],"reporter":["lcov","text-summary"]},"gitHead":"5d134394acb6429840438cc262c36c76d91e356c","_id":"ajv-errors@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"10.0.0","_npmUser":{"name":"esp","email":"e.poberezkin@me.com"},"dist":{"shasum":"f35986aceb91afadec4102fbd85014950cefa64d","size":8716,"noattachment":false,"key":"/ajv-errors/-/ajv-errors-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ajv-errors/download/ajv-errors-1.0.1.tgz"},"maintainers":[{"name":"esp","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ajv-errors_1.0.1_1544388262825_0.438145911563087"},"_hasShrinkwrap":false,"publish_time":1544388263016,"_cnpm_publish_time":1544388263016},"1.0.0":{"name":"ajv-errors","version":"1.0.0","description":"Custom error messages in JSON-Schema for Ajv validator","main":"index.js","files":["lib"],"scripts":{"build":"node node_modules/ajv/scripts/compile-dots.js node_modules/ajv/lib lib","eslint":"eslint *.js spec","test-spec":"mocha spec/*.spec.js -R spec","test-cov":"nyc npm run test-spec","test":"npm run eslint && npm run build && npm run test-cov","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/epoberezkin/ajv-errors.git"},"keywords":["ajv","json-schema","validator","error","messages"],"author":"","license":"MIT","bugs":{"url":"https://github.com/epoberezkin/ajv-errors/issues"},"homepage":"https://github.com/epoberezkin/ajv-errors#readme","peerDependencies":{"ajv":">=5.0.0"},"devDependencies":{"ajv":"^5.0.0","coveralls":"^2.11.16","dot":"^1.1.1","eslint":"^3.17.0","glob":"^7.1.1","js-beautify":"^1.6.12","mocha":"^3.2.0","nyc":"^10.1.2","pre-commit":"^1.2.2"},"nyc":{"exclude":["**/spec/**","node_modules"],"reporter":["lcov","text-summary"]},"gitHead":"99e3352b1b3544efc8ec9c7d40e8e0e4fb76545d","_id":"ajv-errors@1.0.0","_shasum":"ecf021fa108fd17dfb5e6b383f2dd233e31ffc59","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.1","_npmUser":{"name":"esp","email":"e.poberezkin@me.com"},"maintainers":[{"name":"esp","email":""}],"dist":{"shasum":"ecf021fa108fd17dfb5e6b383f2dd233e31ffc59","size":8554,"noattachment":false,"key":"/ajv-errors/-/ajv-errors-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ajv-errors/download/ajv-errors-1.0.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ajv-errors-1.0.0.tgz_1495907979993_0.6698060610797256"},"directories":{},"publish_time":1495907981038,"_hasShrinkwrap":false,"_cnpm_publish_time":1495907981038},"0.5.0":{"name":"ajv-errors","version":"0.5.0","description":"Custom error messages in JSON-Schema for Ajv validator","main":"index.js","files":["lib"],"scripts":{"build":"node node_modules/ajv/scripts/compile-dots.js node_modules/ajv/lib lib","eslint":"eslint *.js spec","test-spec":"mocha spec/*.spec.js -R spec","test-cov":"nyc npm run test-spec","test":"npm run eslint && npm run build && npm run test-cov","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/epoberezkin/ajv-errors.git"},"keywords":["ajv","json-schema","validator","error","messages"],"author":"","license":"MIT","bugs":{"url":"https://github.com/epoberezkin/ajv-errors/issues"},"homepage":"https://github.com/epoberezkin/ajv-errors#readme","peerDependencies":{"ajv":">=5.0.0"},"devDependencies":{"ajv":"^5.0.0","coveralls":"^2.11.16","dot":"^1.1.1","eslint":"^3.17.0","glob":"^7.1.1","js-beautify":"^1.6.12","mocha":"^3.2.0","nyc":"^10.1.2","pre-commit":"^1.2.2"},"nyc":{"exclude":["**/spec/**","node_modules"],"reporter":["lcov","text-summary"]},"gitHead":"6896050438a254710a674e52802087de0a7d0eb6","_id":"ajv-errors@0.5.0","_shasum":"e0df4940776e36fa7084c7944c636ac5ea9b747a","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.1","_npmUser":{"name":"esp","email":"e.poberezkin@me.com"},"maintainers":[{"name":"esp","email":""}],"dist":{"shasum":"e0df4940776e36fa7084c7944c636ac5ea9b747a","size":8352,"noattachment":false,"key":"/ajv-errors/-/ajv-errors-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ajv-errors/download/ajv-errors-0.5.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ajv-errors-0.5.0.tgz_1495899292681_0.15062517416663468"},"directories":{},"publish_time":1495899293768,"_cnpm_publish_time":1495899293768,"_hasShrinkwrap":false},"0.4.0":{"name":"ajv-errors","version":"0.4.0","description":"Custom error messages in JSON-Schema for Ajv validator","main":"index.js","files":["lib"],"scripts":{"build":"node node_modules/ajv/scripts/compile-dots.js node_modules/ajv/lib lib","eslint":"eslint *.js spec","test-spec":"mocha spec/*.spec.js -R spec","test-cov":"nyc npm run test-spec","test":"npm run eslint && npm run build && npm run test-cov","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/epoberezkin/ajv-errors.git"},"keywords":["ajv","json-schema","validator","error","messages"],"author":"","license":"MIT","bugs":{"url":"https://github.com/epoberezkin/ajv-errors/issues"},"homepage":"https://github.com/epoberezkin/ajv-errors#readme","peerDependencies":{"ajv":">=5.0.0"},"devDependencies":{"ajv":"^5.0.0","coveralls":"^2.11.16","dot":"^1.1.1","eslint":"^3.17.0","glob":"^7.1.1","js-beautify":"^1.6.12","mocha":"^3.2.0","nyc":"^10.1.2","pre-commit":"^1.2.2"},"nyc":{"exclude":["**/spec/**","node_modules"],"reporter":["lcov","text-summary"]},"gitHead":"463b2a6dd8b806b0b22bf1a19b55b7bd5141fb48","_id":"ajv-errors@0.4.0","_shasum":"22f351b6faafdb65c99a04e48d9c0ef608649138","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"esp","email":"e.poberezkin@me.com"},"maintainers":[{"name":"esp","email":""}],"dist":{"shasum":"22f351b6faafdb65c99a04e48d9c0ef608649138","size":7438,"noattachment":false,"key":"/ajv-errors/-/ajv-errors-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ajv-errors/download/ajv-errors-0.4.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ajv-errors-0.4.0.tgz_1494366397805_0.6618154644966125"},"directories":{},"publish_time":1494366400263,"_hasShrinkwrap":false,"_cnpm_publish_time":1494366400263},"0.3.0":{"name":"ajv-errors","version":"0.3.0","description":"Custom error messages in JSON-Schema for Ajv validator","main":"index.js","files":["lib"],"scripts":{"build":"node node_modules/ajv/scripts/compile-dots.js node_modules/ajv/lib lib","eslint":"eslint *.js spec","test-spec":"mocha spec/*.spec.js -R spec","test-cov":"nyc npm run test-spec","test":"npm run eslint && npm run build && npm run test-cov","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/epoberezkin/ajv-errors.git"},"keywords":["ajv","json-schema","validator","error","messages"],"author":"","license":"MIT","bugs":{"url":"https://github.com/epoberezkin/ajv-errors/issues"},"homepage":"https://github.com/epoberezkin/ajv-errors#readme","peerDependencies":{"ajv":">=5.0.0"},"devDependencies":{"ajv":"^5.0.0","coveralls":"^2.11.16","dot":"^1.1.1","eslint":"^3.17.0","glob":"^7.1.1","js-beautify":"^1.6.12","mocha":"^3.2.0","nyc":"^10.1.2","pre-commit":"^1.2.2"},"nyc":{"exclude":["**/spec/**","node_modules"],"reporter":["lcov","text-summary"]},"gitHead":"2198d2e98180658c3f11aa27a5b1be6105dd64c3","_id":"ajv-errors@0.3.0","_shasum":"539c41568e1bfd9cf0f50a33a3bf02c11a38f917","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"esp","email":"e.poberezkin@me.com"},"maintainers":[{"name":"esp","email":""}],"dist":{"shasum":"539c41568e1bfd9cf0f50a33a3bf02c11a38f917","size":6565,"noattachment":false,"key":"/ajv-errors/-/ajv-errors-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ajv-errors/download/ajv-errors-0.3.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ajv-errors-0.3.0.tgz_1494357272151_0.45966680673882365"},"directories":{},"publish_time":1494357273951,"_hasShrinkwrap":false,"_cnpm_publish_time":1494357273951},"0.2.0":{"name":"ajv-errors","version":"0.2.0","description":"Custom error messages in JSON-Schema for Ajv validator","main":"index.js","files":["lib"],"scripts":{"build":"node node_modules/ajv/scripts/compile-dots.js node_modules/ajv/lib lib","eslint":"eslint *.js spec","test-spec":"mocha spec/*.spec.js -R spec","test-cov":"nyc npm run test-spec","test":"npm run eslint && npm run build && npm run test-cov","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/epoberezkin/ajv-errors.git"},"keywords":["ajv","json-schema","validator","error","messages"],"author":"","license":"MIT","bugs":{"url":"https://github.com/epoberezkin/ajv-errors/issues"},"homepage":"https://github.com/epoberezkin/ajv-errors#readme","peerDependencies":{"ajv":">=5.0.0"},"devDependencies":{"ajv":"^5.0.0","coveralls":"^2.11.16","dot":"^1.1.1","eslint":"^3.17.0","glob":"^7.1.1","js-beautify":"^1.6.12","mocha":"^3.2.0","nyc":"^10.1.2","pre-commit":"^1.2.2"},"nyc":{"exclude":["**/spec/**","node_modules"],"reporter":["lcov","text-summary"]},"gitHead":"cd9af6681bfdcf3d6f4bb1c143790b1470762999","_id":"ajv-errors@0.2.0","_shasum":"008204c64a57c9be5ced529a80b05c094f7cd3c0","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.1","_npmUser":{"name":"esp","email":"e.poberezkin@me.com"},"maintainers":[{"name":"esp","email":""}],"dist":{"shasum":"008204c64a57c9be5ced529a80b05c094f7cd3c0","size":5328,"noattachment":false,"key":"/ajv-errors/-/ajv-errors-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ajv-errors/download/ajv-errors-0.2.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ajv-errors-0.2.0.tgz_1493656328770_0.18939133686944842"},"directories":{},"publish_time":1493656330431,"_hasShrinkwrap":false,"_cnpm_publish_time":1493656330431},"0.1.2":{"name":"ajv-errors","version":"0.1.2","description":"Custom error messages in JSON-Schema for Ajv validator","main":"index.js","files":["lib"],"scripts":{"build":"node node_modules/ajv/scripts/compile-dots.js node_modules/ajv/lib lib","eslint":"eslint *.js spec","test-spec":"mocha spec/*.spec.js -R spec","test-cov":"nyc npm run test-spec","test":"npm run eslint && npm run build && npm run test-cov","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/epoberezkin/ajv-errors.git"},"keywords":["ajv","json-schema","validator","error","messages"],"author":"","license":"MIT","bugs":{"url":"https://github.com/epoberezkin/ajv-errors/issues"},"homepage":"https://github.com/epoberezkin/ajv-errors#readme","peerDependencies":{"ajv":">=5.0.0"},"devDependencies":{"ajv":"^5.0.0","coveralls":"^2.11.16","dot":"^1.1.1","eslint":"^3.17.0","glob":"^7.1.1","js-beautify":"^1.6.12","mocha":"^3.2.0","nyc":"^10.1.2","pre-commit":"^1.2.2"},"nyc":{"exclude":["**/spec/**","node_modules"],"reporter":["lcov","text-summary"]},"gitHead":"ef36fa1ad34937b6baab7f5fccc9b1cbed88b7b7","_id":"ajv-errors@0.1.2","_shasum":"561877abb7f15c44032687e37fd9b7638ada7909","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.1","_npmUser":{"name":"esp","email":"e.poberezkin@me.com"},"maintainers":[{"name":"esp","email":""}],"dist":{"shasum":"561877abb7f15c44032687e37fd9b7638ada7909","size":4399,"noattachment":false,"key":"/ajv-errors/-/ajv-errors-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/ajv-errors/download/ajv-errors-0.1.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ajv-errors-0.1.2.tgz_1493583855068_0.06978772417642176"},"directories":{},"publish_time":1493583856937,"_hasShrinkwrap":false,"_cnpm_publish_time":1493583856937},"0.1.1":{"name":"ajv-errors","version":"0.1.1","description":"Custom error messages in JSON-Schema for Ajv validator","main":"index.js","scripts":{"build":"node node_modules/ajv/scripts/compile-dots.js node_modules/ajv/lib lib","eslint":"eslint *.js spec","test-spec":"mocha spec/*.spec.js -R spec","test-cov":"nyc npm run test-spec","test":"npm run eslint && npm run build && npm run test-cov"},"repository":{"type":"git","url":"git+https://github.com/epoberezkin/ajv-errors.git"},"keywords":["ajv","json-schema","validator","error","messages"],"author":"","license":"MIT","bugs":{"url":"https://github.com/epoberezkin/ajv-errors/issues"},"homepage":"https://github.com/epoberezkin/ajv-errors#readme","peerDependencies":{"ajv":">=5.0.0"},"devDependencies":{"ajv":"^5.0.0","coveralls":"^2.11.16","dot":"^1.1.1","eslint":"^3.17.0","glob":"^7.1.1","js-beautify":"^1.6.12","mocha":"^3.2.0","nyc":"^10.1.2","pre-commit":"^1.2.2"},"nyc":{"exclude":["**/spec/**","node_modules"],"reporter":["lcov","text-summary"]},"gitHead":"5f5941837a99e14593d254dee53476cd64ea4959","_id":"ajv-errors@0.1.1","_shasum":"0e3efa3f1c043b8ba9cbd7c792a1c4d159b7541c","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.1","_npmUser":{"name":"esp","email":"e.poberezkin@me.com"},"maintainers":[{"name":"esp","email":""}],"dist":{"shasum":"0e3efa3f1c043b8ba9cbd7c792a1c4d159b7541c","size":6557,"noattachment":false,"key":"/ajv-errors/-/ajv-errors-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ajv-errors/download/ajv-errors-0.1.1.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/ajv-errors-0.1.1.tgz_1493581004672_0.3394001806154847"},"directories":{},"publish_time":1493581005272,"_cnpm_publish_time":1493581005272,"_hasShrinkwrap":false},"0.1.0":{"name":"ajv-errors","version":"0.1.0","description":"Custom error messages in JSON-Schema for Ajv validator","main":"index.js","scripts":{"build":"node node_modules/ajv/scripts/compile-dots.js node_modules/ajv/lib lib","eslint":"eslint *.js spec","test-spec":"mocha spec/*.spec.js -R spec","test-cov":"nyc npm run test-spec","test":"npm run eslint && npm run build && npm run test-cov"},"repository":{"type":"git","url":"git+https://github.com/epoberezkin/ajv-errors.git"},"keywords":["ajv","json-schema","validator","error","messages"],"author":"","license":"MIT","bugs":{"url":"https://github.com/epoberezkin/ajv-errors/issues"},"homepage":"https://github.com/epoberezkin/ajv-errors#readme","peerDependencies":{"ajv":">=5.0.0"},"devDependencies":{"ajv":"^5.0.0","coveralls":"^2.11.16","dot":"^1.1.1","eslint":"^3.17.0","glob":"^7.1.1","js-beautify":"^1.6.12","mocha":"^3.2.0","nyc":"^10.1.2","pre-commit":"^1.2.2"},"nyc":{"exclude":["**/spec/**","node_modules"],"reporter":["lcov","text-summary"]},"gitHead":"24eb684608f778a592905e8ecc7b1e124683e98d","_id":"ajv-errors@0.1.0","_shasum":"575fe73af89ca815664c97534f6cb21e0fd3143f","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.1","_npmUser":{"name":"esp","email":"e.poberezkin@me.com"},"maintainers":[{"name":"esp","email":""}],"dist":{"shasum":"575fe73af89ca815664c97534f6cb21e0fd3143f","size":6543,"noattachment":false,"key":"/ajv-errors/-/ajv-errors-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ajv-errors/download/ajv-errors-0.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ajv-errors-0.1.0.tgz_1493578076194_0.40459733200259507"},"directories":{},"publish_time":1493578078032,"_cnpm_publish_time":1493578078032,"_hasShrinkwrap":false},"0.0.1":{"name":"ajv-errors","version":"0.0.1","description":"Custom error messages in JSON-Schema for Ajv validator","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/epoberezkin/ajv-errors.git"},"keywords":["ajv","json-schema","validator","error","messages"],"author":"","license":"MIT","bugs":{"url":"https://github.com/epoberezkin/ajv-errors/issues"},"homepage":"https://github.com/epoberezkin/ajv-errors#readme","gitHead":"c30cfd8987e0cf23cc39ff8dd6dc1feede17ad9e","_id":"ajv-errors@0.0.1","_shasum":"9d25c7a77ec8e9ec88017059d32cd699251f2e5b","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"esp","email":"e.poberezkin@me.com"},"maintainers":[{"name":"esp","email":""}],"dist":{"shasum":"9d25c7a77ec8e9ec88017059d32cd699251f2e5b","size":1484,"noattachment":false,"key":"/ajv-errors/-/ajv-errors-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ajv-errors/download/ajv-errors-0.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/ajv-errors-0.0.1.tgz_1488714041336_0.44593694899231195"},"directories":{},"publish_time":1488714042016,"_cnpm_publish_time":1488714042016,"_hasShrinkwrap":false}},"readme":"# ajv-errors\n\nCustom error messages in JSON-Schema for Ajv validator\n\n[![build](https://github.com/ajv-validator/ajv-errors/workflows/build/badge.svg)](https://github.com/ajv-validator/ajv-errors/actions?query=workflow%3Abuild)\n[![npm](https://img.shields.io/npm/v/ajv-errors.svg)](https://www.npmjs.com/package/ajv-errors)\n[![coverage](https://coveralls.io/repos/github/ajv-validator/ajv-errors/badge.svg?branch=master)](https://coveralls.io/github/ajv-validator/ajv-errors?branch=master)\n[![gitter](https://img.shields.io/gitter/room/ajv-validator/ajv.svg)](https://gitter.im/ajv-validator/ajv)\n\n**Please note**\n\najv-errors v3 supports [ajv v8](https://github.com/ajv-validator/ajv).\n\nIf you are using ajv v6, you should use [ajv-errors v1](https://github.com/ajv-validator/ajv-errors/tree/v1)\n\n## Contents\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Single message](#single-message)\n  - [Messages for keywords](#messages-for-keywords)\n  - [Messages for properties and items](#messages-for-properties-and-items)\n  - [Default message](#default-message)\n- [Templates](#templates)\n- [Options](#options)\n- [Supporters, Enterprise support, Security contact](#supporters)\n- [License](#license)\n\n## Install\n\n```\nnpm install ajv-errors\n```\n\n## Usage\n\nAdd the keyword `errorMessages` to Ajv instance:\n\n```javascript\nconst Ajv = require(\"ajv\").default\nconst ajv = new Ajv({allErrors: true})\n// Ajv option allErrors is required\nrequire(\"ajv-errors\")(ajv /*, {singleError: true} */)\n```\n\nSee [Options](#options) below.\n\n### Single message\n\nReplace all errors in the current schema and subschemas with a single message:\n\n```javascript\nconst schema = {\n  type: \"object\",\n  required: [\"foo\"],\n  properties: {\n    foo: {type: \"integer\"},\n  },\n  additionalProperties: false,\n  errorMessage: \"should be an object with an integer property foo only\",\n}\n\nconst validate = ajv.compile(schema)\nconsole.log(validate({foo: \"a\", bar: 2})) // false\nconsole.log(validate.errors) // processed errors\n```\n\nProcessed errors:\n\n```json5\n[\n  {\n    keyword: \"errorMessage\",\n    message: \"should be an object with an integer property foo only\",\n    // ...\n    params: {\n      errors: [\n        {keyword: \"additionalProperties\", instancePath: \"\" /* , ... */},\n        {keyword: \"type\", instancePath: \".foo\" /* , ... */},\n      ],\n    },\n  },\n]\n```\n\n### Messages for keywords\n\nReplace errors for certain keywords in the current schema only:\n\n```javascript\nconst schema = {\n  type: \"object\",\n  required: [\"foo\"],\n  properties: {\n    foo: {type: \"integer\"},\n  },\n  additionalProperties: false,\n  errorMessage: {\n    type: \"should be an object\", // will not replace internal \"type\" error for the property \"foo\"\n    required: \"should have property foo\",\n    additionalProperties: \"should not have properties other than foo\",\n  },\n}\n\nconst validate = ajv.compile(schema)\nconsole.log(validate({foo: \"a\", bar: 2})) // false\nconsole.log(validate.errors) // processed errors\n```\n\nProcessed errors:\n\n```json5\n[\n  {\n    // original error\n    keyword: type,\n    instancePath: \"/foo\",\n    // ...\n    message: \"should be integer\",\n  },\n  {\n    // generated error\n    keyword: \"errorMessage\",\n    message: \"should not have properties other than foo\",\n    // ...\n    params: {\n      errors: [{keyword: \"additionalProperties\" /* , ... */}],\n    },\n  },\n]\n```\n\nFor keywords \"required\" and \"dependencies\" it is possible to specify different messages for different properties:\n\n```javascript\nconst schema = {\n  type: \"object\",\n  required: [\"foo\", \"bar\"],\n  properties: {\n    foo: {type: \"integer\"},\n    bar: {type: \"string\"},\n  },\n  errorMessage: {\n    type: \"should be an object\", // will not replace internal \"type\" error for the property \"foo\"\n    required: {\n      foo: 'should have an integer property \"foo\"',\n      bar: 'should have a string property \"bar\"',\n    },\n  },\n}\n```\n\n### Messages for properties and items\n\nReplace errors for properties / items (and deeper), regardless where in schema they were created:\n\n```javascript\nconst schema = {\n  type: \"object\",\n  required: [\"foo\", \"bar\"],\n  allOf: [\n    {\n      properties: {\n        foo: {type: \"integer\", minimum: 2},\n        bar: {type: \"string\", minLength: 2},\n      },\n      additionalProperties: false,\n    },\n  ],\n  errorMessage: {\n    properties: {\n      foo: \"data.foo should be integer >= 2\",\n      bar: \"data.bar should be string with length >= 2\",\n    },\n  },\n}\n\nconst validate = ajv.compile(schema)\nconsole.log(validate({foo: 1, bar: \"a\"})) // false\nconsole.log(validate.errors) // processed errors\n```\n\nProcessed errors:\n\n```json5\n[\n  {\n    keyword: \"errorMessage\",\n    message: \"data.foo should be integer >= 2\",\n    instancePath: \"/foo\",\n    // ...\n    params: {\n      errors: [{keyword: \"minimum\" /* , ... */}],\n    },\n  },\n  {\n    keyword: \"errorMessage\",\n    message: \"data.bar should be string with length >= 2\",\n    instancePath: \"/bar\",\n    // ...\n    params: {\n      errors: [{keyword: \"minLength\" /* , ... */}],\n    },\n  },\n]\n```\n\n### Default message\n\nWhen the value of keyword `errorMessage` is an object you can specify a message that will be used if any error appears that is not specified by keywords/properties/items using `_` property:\n\n```javascript\nconst schema = {\n  type: \"object\",\n  required: [\"foo\", \"bar\"],\n  allOf: [\n    {\n      properties: {\n        foo: {type: \"integer\", minimum: 2},\n        bar: {type: \"string\", minLength: 2},\n      },\n      additionalProperties: false,\n    },\n  ],\n  errorMessage: {\n    type: \"data should be an object\",\n    properties: {\n      foo: \"data.foo should be integer >= 2\",\n      bar: \"data.bar should be string with length >= 2\",\n    },\n    _: 'data should have properties \"foo\" and \"bar\" only',\n  },\n}\n\nconst validate = ajv.compile(schema)\nconsole.log(validate({})) // false\nconsole.log(validate.errors) // processed errors\n```\n\nProcessed errors:\n\n```json5\n[\n  {\n    keyword: \"errorMessage\",\n    message: 'data should be an object with properties \"foo\" and \"bar\" only',\n    instancePath: \"\",\n    // ...\n    params: {\n      errors: [{keyword: \"required\" /* , ... */}, {keyword: \"required\" /* , ... */}],\n    },\n  },\n]\n```\n\nThe message in property `_` of `errorMessage` replaces the same errors that would have been replaced if `errorMessage` were a string.\n\n## Templates\n\nCustom error messages used in `errorMessage` keyword can be templates using [JSON-pointers](https://tools.ietf.org/html/rfc6901) or [relative JSON-pointers](http://tools.ietf.org/html/draft-luff-relative-json-pointer-00) to data being validated, in which case the value will be interpolated. Also see [examples](https://gist.github.com/geraintluff/5911303) of relative JSON-pointers.\n\nThe syntax to interpolate a value is `${<pointer>}`.\n\nThe values used in messages will be JSON-stringified:\n\n- to differentiate between `false` and `\"false\"`, etc.\n- to support structured values.\n\nExample:\n\n```javascript\nconst schema = {\n  type: \"object\",\n  properties: {\n    size: {\n      type: \"number\",\n      minimum: 4,\n    },\n  },\n  errorMessage: {\n    properties: {\n      size: \"size should be a number bigger or equal to 4, current value is ${/size}\",\n    },\n  },\n}\n```\n\n#### Using property names in error messages\n\nProperty names can be used in error messages with the relative JSON-pointer (e.g. `0#`). \n\nExample: \n```javascript\nconst schema = {\n  type: \"object\",\n  properties: {\n    size: {\n      type: \"number\",\n    },\n  },\n  additionalProperties: {\n    not: true,\n    errorMessage: “extra property is ${0#}”\n  }\n}\n```\n\n## Options\n\nDefaults:\n\n```json5\n{\n  keepErrors: false,\n  singleError: false,\n}\n```\n\n- _keepErrors_: keep original errors. Default is to remove matched errors (they will still be available in `params.errors` property of generated error). If an error was matched and included in the error generated by `errorMessage` keyword it will have property `emUsed: true`.\n- _singleError_: create one error for all keywords used in `errorMessage` keyword (error messages defined for properties and items are not merged because they have different instancePaths). Multiple error messages are concatenated. Option values:\n  - `false` (default): create multiple errors, one for each message\n  - `true`: create single error, messages are concatenated using `\"; \"`\n  - non-empty string: this string is used as a separator to concatenate messages\n\n## Supporters\n\n[Roger Kepler](https://www.linkedin.com/in/rogerkepler/)\n\n## Enterprise support\n\najv-errors package is a part of [Tidelift enterprise subscription](https://tidelift.com/subscription/pkg/npm-ajv-errors?utm_source=npm-ajv-errors&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) - it provides a centralised commercial support to open-source software users, in addition to the support provided by software maintainers.\n\n## Security contact\n\nTo report a security vulnerability, please use the\n[Tidelift security contact](https://tidelift.com/security).\nTidelift will coordinate the fix and disclosure. Please do NOT report security vulnerability via GitHub issues.\n\n## License\n\n[MIT](https://github.com/epoberezkin/ajv-errors/blob/master/LICENSE)\n","_attachments":{},"homepage":"https://github.com/epoberezkin/ajv-errors#readme","bugs":{"url":"https://github.com/epoberezkin/ajv-errors/issues"},"license":"MIT"}