v10.11.0
版本发布时间: 2022-05-02 01:11:34
go-playground/validator最新发布版本:v10.22.1(2024-09-09 08:17:07)
What's new?
- Add ability to validate structs using map rules. https://github.com/go-playground/validator/pull/934
- A number of hash validations. https://github.com/go-playground/validator/pull/875
- Italian translations. https://github.com/go-playground/validator/pull/694/ https://github.com/go-playground/validator/pull/914
- Vietnamese translations. https://github.com/go-playground/validator/pull/820/
- Arabic translations. https://github.com/go-playground/validator/pull/825
- Added missing
Boolean
translation. https://github.com/go-playground/validator/pull/930 - Add missing
required
translation. https://github.com/go-playground/validator/pull/884 - Add missing
zh
translations. https://github.com/go-playground/validator/pull/856 - Added
exclude_if
andexcluded_unless
tags. https://github.com/go-playground/validator/pull/847 - Added Credit Card validation. https://github.com/go-playground/validator/pull/924
What was fixed?
- Fix support for aliased time.Time types. https://github.com/go-playground/validator/pull/890
- Fix multiple group of
OR
operators. https://github.com/go-playground/validator/pull/911/ - Remove underscore from RFC-1123 based regex. https://github.com/go-playground/validator/pull/912
-
ja
typos. https://github.com/go-playground/validator/pull/898 - Documentation typos. https://github.com/go-playground/validator/pull/891
What was enhanced?
-
ValidationCtx
now supports nested slice maps. https://github.com/go-playground/validator/pull/917/ -
RegisterTagNameFunc
documentation. RegisterTagNameFunc