Comparing version 0.0.8 to 0.0.9
@@ -53,4 +53,6 @@ 'use strict'; | ||
} catch(e) { | ||
console.log(e); | ||
return false; | ||
if(schema.required) { | ||
console.log(e); | ||
return false; | ||
} | ||
} | ||
@@ -73,5 +75,4 @@ | ||
let value = schema.static === true ? schema.default : (data[key] || schema.default); | ||
return type.compose(value, data, schema, protocol); | ||
return type.compose(value, data, schema, protocol); | ||
})); | ||
@@ -78,0 +79,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"author": "Christian Blaschke <mail@platdesign.de>", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"main": "./lib/bipro.js", | ||
@@ -8,0 +8,0 @@ "dependencies": { |
58246
452