Merge pull request #15 from STRML/master

Fix up loopback.rest() model definition hack.
This commit is contained in:
Raymond Feng 2014-07-18 15:45:53 -07:00
commit b6ef248b76
1 changed files with 1 additions and 4 deletions

View File

@ -88,10 +88,7 @@ var routeHelper = module.exports = {
if (firstReturn.type === 'object') {
firstReturn.type = classDef.name;
} else if (firstReturn.type === 'array') {
firstReturn.type = 'array';
firstReturn.items = {
'$ref': classDef.name
};
firstReturn.type = [classDef.name];
}
}