schemaglobin
Advanced tools
Comparing version 4.0.6 to 4.0.7
@@ -101,3 +101,3 @@ "use strict"; | ||
required(props) { | ||
return new ObjectSchema({ props, required: true }); | ||
return new ObjectSchema({ props, required: true, value: {} }); | ||
}, | ||
@@ -104,0 +104,0 @@ optional(props) { |
{ | ||
"name": "schemaglobin", | ||
"description": "Validate user-entered data.", | ||
"version": "4.0.6", | ||
"version": "4.0.7", | ||
"repository": "https://github.com/dhoulb/schemaglobin", | ||
@@ -6,0 +6,0 @@ "author": "Dave Houlbrooke <dave@shax.com>", |
@@ -134,3 +134,3 @@ /* eslint-disable no-dupe-class-members */ | ||
required<S extends { [prop: string]: Schema }>(props: S): ObjectSchema<S, true> { | ||
return new ObjectSchema({ props, required: true }); | ||
return new ObjectSchema({ props, required: true, value: {} as SchemasType<S> }); | ||
}, | ||
@@ -137,0 +137,0 @@ optional<S extends { [prop: string]: Schema }>(props: S): ObjectSchema<S, 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
246160