mirror of https://github.com/beego/bee.git
fix required struct tag when anonymous nested struct
This commit is contained in:
parent
677987a7d9
commit
13f0022bae
|
@ -1224,6 +1224,7 @@ func parseStruct(st *ast.StructType, k string, m *swagger.Schema, realTypes *[]s
|
|||
for name, p := range nm.Properties {
|
||||
m.Properties[name] = p
|
||||
}
|
||||
m.Required = append(m.Required, nm.Required...)
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue