chore(deps): bump github.com/go-playground/validator/v10
Bumps [github.com/go-playground/validator/v10](https://github.com/go-playground/validator) from 10.22.0 to 10.22.1. - [Release notes](https://github.com/go-playground/validator/releases) - [Commits](https://github.com/go-playground/validator/compare/v10.22.0...v10.22.1) --- updated-dependencies: - dependency-name: github.com/go-playground/validator/v10 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
committed by
Ralf Haferkamp
parent
908dba5dab
commit
84261d2d6d
+1
-1
@@ -1,7 +1,7 @@
|
||||
Package validator
|
||||
=================
|
||||
<img align="right" src="logo.png">[](https://gitter.im/go-playground/validator?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||

|
||||

|
||||
[](https://travis-ci.org/go-playground/validator)
|
||||
[](https://coveralls.io/github/go-playground/validator?branch=master)
|
||||
[](https://goreportcard.com/report/github.com/go-playground/validator)
|
||||
|
||||
+8
-1
@@ -1828,7 +1828,14 @@ func requireCheckFieldValue(
|
||||
return int64(field.Len()) == asInt(value)
|
||||
|
||||
case reflect.Bool:
|
||||
return field.Bool() == asBool(value)
|
||||
return field.Bool() == (value == "true")
|
||||
|
||||
case reflect.Ptr:
|
||||
if field.IsNil() {
|
||||
return value == "nil"
|
||||
}
|
||||
// Handle non-nil pointers
|
||||
return requireCheckFieldValue(fl, param, value, defaultNotFoundValue)
|
||||
}
|
||||
|
||||
// default reflect.String:
|
||||
|
||||
Reference in New Issue
Block a user