mirror of
https://github.com/beego/bee.git
synced 2025-06-13 06:40:39 +00:00
fix required struct tag when anonymous nested struct
This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user