5 Commits

Author SHA1 Message Date
Krzysztof Szafrański
f26790bbda Implement registering validator tags for custom map and slice types 2021-11-05 18:28:36 +01:00
Krzysztof Szafrański
04ccf172a6 Add support for validating map types 2021-11-05 18:28:00 +01:00
Krzysztof Szafrański
cb9b68b1b5 Always return ValidationErrors, expose failing index
This way callers can always expect ValidationErrors, and in case
of slice validation, they can also get indexes of the failing elements.
2021-11-05 18:27:32 +01:00
ziheng
e3ee01d185
improve sliceValidateError.Error performance using switch and strings.Builder (#2765)
fix missing nil pointer check

use simpler switch case

add missing tests

use for-loop instead of range

add benchmark test codes
2021-06-28 22:05:29 +08:00
wuhuizuo
4bfae4c8c8
Support binding for slice/array obj [Rewrite] (#2302)
Co-authored-by: thinkerou <thinkerou@gmail.com>
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-01-03 21:43:34 +08:00