remove required from sub-schema
This commit is contained in:
parent
022403eadc
commit
772a48773d
|
@ -81,6 +81,10 @@ var modelHelper = module.exports = {
|
|||
required.push(key);
|
||||
}
|
||||
|
||||
if (prop.hasOwnProperty('required')){
|
||||
delete prop.required;
|
||||
}
|
||||
|
||||
// Change mismatched keys.
|
||||
prop = translateDataTypeKeys(prop);
|
||||
|
||||
|
|
Loading…
Reference in New Issue