mirror of https://github.com/beego/bee.git
fix required struct tag when anonymous nested struct
This commit is contained in:
parent
d04f11c57a
commit
97df75a28c
|
@ -1252,6 +1252,7 @@ func parseStruct(imports []*ast.ImportSpec, st *ast.StructType, k string, m *swa
|
||||||
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