Added Support of skipUnless Validator

pull/976/head
t0250361 3 years ago
parent c12e80a0b5
commit 4633d16a2f
  1. 2
      baked_in.go

@ -1619,7 +1619,7 @@ func skipUnless(fl FieldLevel) bool {
}
for i := 0; i < len(params); i += 2 {
if requireCheckFieldValue(fl, params[i], params[i+1], false) {
if !requireCheckFieldValue(fl, params[i], params[i+1], false) {
return true
}
}

Loading…
Cancel
Save