mirror of
https://github.com/beego/bee.git
synced 2024-12-25 14:50:51 +00:00
update tag
This commit is contained in:
parent
d30c68e72f
commit
89ae690fdd
@ -463,7 +463,9 @@ func getModel(str string) (objectname string, m swagger.Model) {
|
||||
for _, field := range st.Fields.List {
|
||||
mp := swagger.ModelProperty{}
|
||||
mp.Type = fmt.Sprint(field.Type)
|
||||
mp.Description = strings.Trim(field.Tag.Value, "`")
|
||||
if field.Tag != nil {
|
||||
mp.Description = strings.Trim(field.Tag.Value, "`")
|
||||
}
|
||||
m.Properties[field.Names[0].Name] = mp
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user