ajv-errors
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "ajv-errors", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Custom error messages in JSON-Schema for Ajv validator", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -46,3 +46,3 @@ 'use strict'; | ||
assert.strictEqual(err.dataPath, ''); | ||
assert.strictEqual(err.schemaPath, '#'); | ||
assert.strictEqual(err.schemaPath, '#/errorMessage'); | ||
var replacedKeywords = err.params.errors.map(function (e) { | ||
@@ -49,0 +49,0 @@ return e.keyword; |
@@ -39,3 +39,3 @@ 'use strict'; | ||
assert.strictEqual(err.dataPath, ''); | ||
assert.strictEqual(err.schemaPath, '#'); | ||
assert.strictEqual(err.schemaPath, '#/errorMessage'); | ||
var replacedKeywords = err.params.errors.map(function (e) { | ||
@@ -42,0 +42,0 @@ return e.keyword; |
Sorry, the diff of this file is not supported yet
19684