1
0
mirror of https://github.com/beego/bee.git synced 2024-12-12 08:51:29 +00:00

fix required struct tag when anonymous nested struct

This commit is contained in:
zhangqz 2021-04-30 14:14:47 +08:00 committed by Deng Ming
parent d04f11c57a
commit 97df75a28c

View File

@ -1252,6 +1252,7 @@ func parseStruct(imports []*ast.ImportSpec, st *ast.StructType, k string, m *swa
for name, p := range nm.Properties {
m.Properties[name] = p
}
m.Required = append(m.Required, nm.Required...)
continue
}
}