schema-inspector
Advanced tools
Comparing version 1.4.9 to 1.5.0
@@ -400,3 +400,3 @@ /* | ||
strict: function (schema, candidate) { | ||
if (schema.strict !== true || !_typeIs.object(candidate)) { | ||
if (schema.strict !== true || !_typeIs.object(candidate) || !_typeIs.object(schema.properties)) { | ||
return; | ||
@@ -403,0 +403,0 @@ } |
@@ -30,1 +30,6 @@ if (typeof require === 'function') { | ||
}); | ||
var schema = { strict: true }; | ||
var obj = {}; | ||
var result = SchemaInspector.validate(schema, obj); | ||
console.log(result); |
{ | ||
"name": "schema-inspector", | ||
"description": "Schema-Inspector is a powerful tool to sanitize and validate JS objects.", | ||
"version": "1.4.9", | ||
"version": "1.5.0", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "author": { |
301336
5332