修复必传属性重复解析问题 + 优化相同结构体未去重问题
This commit is contained in:
@ -28,8 +28,8 @@ func Test_parser_Openapi3(t *testing.T) {
|
||||
Age int `json:"age" d:"18" desc:"年龄" binding:"required"`
|
||||
}
|
||||
type List struct {
|
||||
Total int64 `json:"total"`
|
||||
UserList []User `json:"user_list" binding:"required"`
|
||||
Total int64 `json:"total" binding:"required"`
|
||||
UserList []User `json:"user_list"`
|
||||
}
|
||||
var l List
|
||||
g := NewOpenapiDoc(nil, nil)
|
||||
|
Reference in New Issue
Block a user