1
0
mirror of https://github.com/beego/bee.git synced 2024-11-10 15:00:54 +00:00

Merge branch 'master' into develop

This commit is contained in:
ilylia 2017-08-11 19:14:47 +08:00
commit 6cd9d12fbe

View File

@ -866,6 +866,10 @@ func getModel(str string) (objectname string, m swagger.Schema, realTypes []stri
if k != objectname {
continue
}
// check package
if len(strs) > 1 && pkg.Name != strs[len(strs)-2] {
continue
}
packageName = pkg.Name
parseObject(d, k, &m, &realTypes, astPkgs, pkg.Name)
}