1
0
mirror of https://github.com/beego/bee.git synced 2024-11-16 15:20:55 +00:00
This commit is contained in:
ilylia 2017-08-14 03:12:34 +00:00 committed by GitHub
commit 13c0d14dd7

View File

@ -867,6 +867,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)
}