mirror of
https://github.com/beego/bee.git
synced 2024-11-23 11:50:55 +00:00
Merge pull request #779 from RedBoneZhang/Branch_master
fix required struct tag when anonymous nested struct
This commit is contained in:
commit
457c2f7dc8
@ -1212,6 +1212,7 @@ func parseStruct(st *ast.StructType, k string, m *swagger.Schema, realTypes *[]s
|
|||||||
for name, p := range nm.Properties {
|
for name, p := range nm.Properties {
|
||||||
m.Properties[name] = p
|
m.Properties[name] = p
|
||||||
}
|
}
|
||||||
|
m.Required = append(m.Required, nm.Required...)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user