Releases: go-playground/validator
Release 5.10.3
Changed CI from travis to semaphore
Release 5.10.2
updated the following basked in functions to use utf8.RuneCountInString for string length comparisons:
hasLengthOf
isGt
isGte
isLt
isLte
thanks @zhing for the pulls request
Release v5.10.1
Fixed issue where interface was set but had no validation tag
for #106
Release 5.10
updated to use native go sync.Pool for better parallel speed
updated goveralls so that if their service, which at the time of writing is all buggered up, won't stop travis-ci success
NOTE: to support sync.Pool the library no longer supports go 1.2
Release 5.9.2
Updated Flatten Function to handle new dive logic for #88
Release 5.9.1
Correct interface panic issue #85 thanks to @manucorporat and @semihalev for finding it
Add interface type handling, not the library will determine the underlying type and validate it.
Release v5.9
At long last support for traversing through slice, array and maps and validating at any or all levels!
see documentation for the new "dive" tag
benchmarks have slightly increased ns/op and B/ops for this functionality and an additional allocation for single field validation.
$ go test -cpu=4 -bench=. -benchmem=true
PASS
BenchmarkValidateField-4 3000000 439 ns/op 192 B/op 2 allocs/op
BenchmarkValidateStructSimple-4 1000000 2382 ns/op 656 B/op 10 allocs/op
BenchmarkTemplateParallelSimple-4 2000000 910 ns/op 656 B/op 10 allocs/op
BenchmarkValidateStructLarge-4 100000 13201 ns/op 4309 B/op 60 allocs/op
BenchmarkTemplateParallelLarge-4 300000 5240 ns/op 4311 B/op 60 allocs/op
for #78
Release 5.8.1
Fix Issue with nested struct as pointer being nil causing validation to fail
Release 5.8
RGB and RGBA regexes
updated to properly validate rgb 255 or rgb percentabe, it no longer allows mixing and matching; either all percentages or all numbers from 0-155
GODOC
Added some godoc examples to better illustrate functions usages
Validators
A huge shout out to @asaskevich for having allot of these validations that I ported from his govalidator, I would not have been able to add them so quickly without his groundwork, Thanks!
ADDED:
isbn10
isbn13
uuid
uuid3
uuid4
uuid5
ascii
printascii
multibyte
datauri
latitude
longitude
ssn
Release 5.7.1
merge change forgot to call new method in test to maintain my 100% test coverage