1
0
mirror of https://github.com/beego/bee.git synced 2024-12-22 20:20:49 +00:00

update swagger

This commit is contained in:
tnextday 2016-08-18 22:29:38 +08:00
parent 3ccffe087e
commit 1e247452ff

View File

@ -605,15 +605,15 @@ func getModel(str string) (pkgpath, objectname string, m swagger.Schema, realTyp
mp.Type = "array"
if isBasicType(realType) {
typeFormat := strings.Split(sType, ":")
mp.Items = []swagger.Propertie{{
mp.Items = &swagger.Propertie{
Type: typeFormat[0],
Format: typeFormat[1],
}}
}
} else {
mp.Items = []swagger.Propertie{{
mp.Items = &swagger.Propertie{
Ref: "#/definitions/" + realType,
}}
}
}
} else {
if isBasicType(realType) {