mirror of
https://github.com/beego/bee.git
synced 2024-11-22 05:00:54 +00:00
update swagger
This commit is contained in:
parent
3ccffe087e
commit
1e247452ff
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user