fix required struct tag when anonymous nested struct

This commit is contained in:
zhangqz 2021-04-30 14:14:47 +08:00
parent f73ad3252b
commit 665150ec64
1 changed files with 1 additions and 0 deletions

View File

@ -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
}
}