validate-value
Advanced tools
Comparing version 7.2.0 to 7.2.1
@@ -22,3 +22,3 @@ "use strict"; | ||
const error = this.validateInternal.errors[0]; | ||
let updatedPath = `${valueName}${error.dataPath.slice(1).replace(/\//gu, separator)}`; | ||
let updatedPath = `${valueName}${error.dataPath.replace(/\//gu, separator)}`; | ||
let message = 'Validation failed'; | ||
@@ -25,0 +25,0 @@ if (error.keyword === 'required') { |
@@ -0,1 +1,8 @@ | ||
## [7.2.1](https://github.com/thenativeweb/validate-value/compare/7.2.0...7.2.1) (2020-10-08) | ||
### Bug Fixes | ||
* Fix missing first separator in paths in error messages. ([#181](https://github.com/thenativeweb/validate-value/issues/181)) ([e6be031](https://github.com/thenativeweb/validate-value/commit/e6be0318428a5d8c3c4909aa1ea47d30b60849c3)) | ||
# [7.2.0](https://github.com/thenativeweb/validate-value/compare/7.1.1...7.2.0) (2020-09-29) | ||
@@ -2,0 +9,0 @@ |
@@ -31,3 +31,3 @@ import Ajv from 'ajv'; | ||
let updatedPath = `${valueName}${error.dataPath.slice(1).replace(/\//gu, separator)}`; | ||
let updatedPath = `${valueName}${error.dataPath.replace(/\//gu, separator)}`; | ||
let message = 'Validation failed'; | ||
@@ -34,0 +34,0 @@ |
{ | ||
"name": "validate-value", | ||
"version": "7.2.0", | ||
"version": "7.2.1", | ||
"description": "validate-value validates values against JSON schemas.", | ||
@@ -27,3 +27,3 @@ "contributors": [ | ||
"assertthat": "5.2.1", | ||
"roboter": "11.2.28", | ||
"roboter": "11.3.12", | ||
"semantic-release-configuration": "1.0.21" | ||
@@ -30,0 +30,0 @@ }, |
10776