Corrected handling for absent settings.additionalProperties
This commit is contained in:
parent
9de19e851e
commit
5fcc411c06
|
@ -105,9 +105,11 @@ var modelHelper = module.exports = {
|
|||
out[name] = {
|
||||
id: name,
|
||||
properties: properties,
|
||||
required: required,
|
||||
additionalProperties: def.settings.additionalProperties
|
||||
required: required
|
||||
};
|
||||
if (def.settings && typeof def.settings.additionalProperties != 'undefined') {
|
||||
out[name].additionalProperties = def.settings.additionalProperties;
|
||||
}
|
||||
|
||||
// Generate model definitions for related models
|
||||
for (var r in modelClass.relations) {
|
||||
|
|
Loading…
Reference in New Issue