mirror of
https://github.com/beego/bee.git
synced 2025-05-11 14:41:25 +00:00
fix required struct tag when anonymous nested struct
This commit is contained in:
parent
9f04de468a
commit
f24ce7a153
@ -1212,6 +1212,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…
x
Reference in New Issue
Block a user