升级文档管理, 支持openapi3, 使用 github.com/getkin/kin-openapi/openapi3 实现 #23
@@ -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(): // 必传
|
||||
|
||||
Reference in New Issue
Block a user