mirror of
https://github.com/beego/bee.git
synced 2024-11-16 15:20:55 +00:00
Merge 114d722a8d
into 0405523d35
This commit is contained in:
commit
13c0d14dd7
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user