Corrected generateModelDefinition() to scan for model references nested in other models
This commit is contained in:
parent
5ef5baee06
commit
820c51fa7a
|
@ -57,6 +57,10 @@ var modelHelper = module.exports = {
|
|||
|
||||
// Eke a type out of the constructors we were passed.
|
||||
prop = modelHelper.LDLPropToSwaggerDataType(prop);
|
||||
processType(modelClass.app, prop.type, out);
|
||||
if (prop.items) {
|
||||
processType(modelClass.app, prop.items.type, out);
|
||||
}
|
||||
|
||||
// Required props sit in a per-model array.
|
||||
if (prop.required || (prop.id && !prop.generated)) {
|
||||
|
|
Loading…
Reference in New Issue