form-schema
Advanced tools
Comparing version 1.1.0 to 2.0.0
{ | ||
"name": "form-schema", | ||
"version": "1.1.0", | ||
"version": "2.0.0", | ||
"description": "A form validation tool that traverses the data according to the schema and calls the validators.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -12,3 +12,3 @@ export default class FormField { | ||
validate(value, ...rest) { | ||
if (typeof value === 'undefined') { | ||
if (typeof value === 'undefined' || (value === null && typeof value === 'object')) { | ||
return this._isRequired ? { | ||
@@ -15,0 +15,0 @@ isValid: false, |
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
34049