Comparing version 2.16.4 to 2.16.5
@@ -719,3 +719,9 @@ /* UNIQORM | ||
// Validate required | ||
if (options.forCreate) { | ||
if (field.required && field.defaultValue == null && | ||
( | ||
(options.forCreate && v == null) || | ||
(!options.forCreate && v !== undefined) | ||
) | ||
) { | ||
if (v == null && field.required && field.defaultValue == null) { | ||
@@ -722,0 +728,0 @@ throw new ValidationError('Value required for field "%s"', name) |
{ | ||
"name": "uniqorm", | ||
"description": "Multi dialect and multi schema ORM framework for enterprise level NodeJS applications", | ||
"version": "2.16.4", | ||
"version": "2.16.5", | ||
"author": "Panates Ltd.", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
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
100360
3289