修复必传属性重复解析问题 + 优化相同结构体未去重问题

This commit is contained in:
2025-02-13 16:18:42 +08:00
parent bc5a8afd6c
commit 7307c85cfd
2 changed files with 20 additions and 6 deletions

View File

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