schema-inspector
Advanced tools
Comparing version 1.6.4 to 1.6.5
@@ -1013,5 +1013,7 @@ /* | ||
for (i in post) { | ||
this._deeperArray(i); | ||
post[i] = this._sanitize(schema.items, post[i]); | ||
this._back(); | ||
if(post.hasOwnProperty(i)){ | ||
this._deeperArray(i); | ||
post[i] = this._sanitize(schema.items, post[i]); | ||
this._back(); | ||
} | ||
} | ||
@@ -1018,0 +1020,0 @@ } |
{ | ||
"name": "schema-inspector", | ||
"description": "Schema-Inspector is a powerful tool to sanitize and validate JS objects.", | ||
"version": "1.6.4", | ||
"version": "1.6.5", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -857,3 +857,3 @@ [](http://atinux.github.io/schema-inspector/) | ||
ipsum: { type: 'string', optional: true, def: 23 }, | ||
dolor: { type: 'string', def: 'NikitaJS, def: 34 } // (optional: true) | ||
dolor: { type: 'string', def: 'NikitaJS', def: 34 } // (optional: true) | ||
} | ||
@@ -860,0 +860,0 @@ }; |
@@ -5,4 +5,7 @@ var validation = require('./validation_test').validation; | ||
// testing issues with shims | ||
Array.prototype.TMP = function(){}; | ||
suite('Validation', validation); | ||
suite('Sanitization', sanitization); | ||
suite('Generator', generator); |
311218
25
5623