Skip to content

Commit 73b5e2a

Browse files
author
Aashutosh
committed
update validators with custom changes in IsInt function
1 parent 886e215 commit 73b5e2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

validators.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,8 +614,8 @@ func IsInt(val any, minAndMax ...int64) (ok bool) {
614614
if val == nil {
615615
return false
616616
}
617-
618-
intVal, err := valueToInt64(val, true)
617+
// Customization: Replace strict value:true -> false; to validate float32, float64 and string type of data. As it always gave error(i.e. false) in parsing time.
618+
intVal, err := valueToInt64(val, false)
619619
if err != nil {
620620
return false
621621
}

0 commit comments

Comments
 (0)