This commit is contained in:
ilylia 2017-08-14 03:12:34 +00:00 committed by GitHub
commit 13c0d14dd7
1 changed files with 4 additions and 0 deletions

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)
}