remove required from sub-schema

This commit is contained in:
Ying Tang 2015-04-01 17:47:57 -07:00
parent 022403eadc
commit 772a48773d
1 changed files with 4 additions and 0 deletions

View File

@ -81,6 +81,10 @@ var modelHelper = module.exports = {
required.push(key);
}
if (prop.hasOwnProperty('required')){
delete prop.required;
}
// Change mismatched keys.
prop = translateDataTypeKeys(prop);