json-struct
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -78,12 +78,12 @@ /** | ||
let key = validator.path[validator.path.length - 1]; | ||
let success = null; | ||
let message = null; | ||
let key = null; | ||
try { | ||
success = validator.test(value); | ||
key = validator.path[validator.path.length - 1] | ||
message = `${key} ${validator.assert}`; | ||
} catch (e) { | ||
success = false; | ||
message = `Error running validation function for key: ${key}`; | ||
} | ||
@@ -90,0 +90,0 @@ |
{ | ||
"name": "json-struct", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "Simple JSON schema validation", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6175