Skip to content

Commit

Permalink
Merge pull request #779 from RedBoneZhang/Branch_master
Browse files Browse the repository at this point in the history
fix required struct tag when anonymous nested struct
flycash authored Apr 30, 2021
2 parents f73ad32 + 665150e commit 457c2f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions generate/swaggergen/g_docs.go
Original file line number Diff line number Diff line change
@@ -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
}
}

0 comments on commit 457c2f7

Please sign in to comment.