升级文档管理, 支持openapi3, 使用 github.com/getkin/kin-openapi/openapi3 实现 #23

Merged
zhangdeman merged 26 commits from feature/upgrade_api_doc_generate into master 2026-01-06 23:26:37 +08:00
Showing only changes of commit 708e327ddf - Show all commits

View File

@@ -42,7 +42,7 @@ func ParseValidateRule(dataType reflect.Type, ruleStr string) ValidateRule {
if len(itemRule) == 0 {
continue
}
if strings.Contains(itemRule, "=") {
if !strings.Contains(itemRule, "=") {
// 一定是无需要值的验证规则
switch itemRule {
case consts.ValidatorRuleCommonRequired.String(): // 必传