a-plus-forms-json-validator
Advanced tools
Comparing version
@@ -19,3 +19,3 @@ 'use strict'; | ||
var value = originalData[key]; | ||
var requiredAndEmpty = required.includes(key) && value === ''; | ||
var requiredAndEmpty = required.includes(key) && (value === '' || value === null); | ||
@@ -22,0 +22,0 @@ // considering empty strings as non-present data |
{ | ||
"name": "a-plus-forms-json-validator", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "JSON Schema validator ", | ||
@@ -54,3 +54,3 @@ "files": [ | ||
"peerDependencies": { | ||
"a-plus-forms": "^0.4.0" | ||
"a-plus-forms": "^0.5.0" | ||
}, | ||
@@ -57,0 +57,0 @@ "dependencies": { |
8562
0.23%