Skip to content

Releases: gookit/validate

v1.5.3

11 Dec 15:36
Compare
Choose a tag to compare

Change Log

Update

  • 👔 up: update IsEmpty check func, add test case for issue 276 ba31b00
  • Fix: Prevent panic when validating struct with nil pointer to map field (#260) 1822f1e

Other

  • build(deps): bump golangci/golangci-lint-action from 3 to 4 (#258) 9ec448d
  • build(deps): bump softprops/action-gh-release from 1 to 2 (#261) 97a70f0
  • build(deps): bump golangci/golangci-lint-action from 4 to 5 (#263) 57c419f
  • build(deps): bump golangci/golangci-lint-action from 5 to 6 (#264) eda7946
  • [Doc] Add code example of how to use custom filters (#268) 82f315e
  • build(deps): bump github.com/gookit/goutil from 0.6.15 to 0.6.18 (#278) d6a88b1
  • ci: add ci test on go1.22+ version c3621d4

New Contributors

Full Changelog: v1.5.2...v1.5.3

v1.5.2

24 Jan 11:18
Compare
Choose a tag to compare

Change Log

Fixed

  • 🐛 fix: panic occurs when passing nil in sub-slice. see issues #223 cf5c4c1
  • fix: Prevent panic on validating nil pointer to slice field (#252) (#253) 117b816
  • 🐛 fix: parse struct tag error on field is byte slice. issues #247 2042e0f
  • 🐛 fix: util convTypeByBaseKind support more basic type convert. issues #245 b24adf8
  • 🐛 fix: error when using custom filter with pointer to slice of strings. see #255 4491213

Feature

  • ✨ feat: add new validator: optional for resolve the issues #192 71857e7

Update

  • ✅ up: update requiredX validate logic, add more unit tests 050296c
  • 👔 up: update some code style and error message format logic 637f9df
  • 👔 up: update the error string format on only one error a567209

Other

  • build(deps): bump WillAbides/setup-go-faster from 1.8.0 to 1.9.0 (#226) b52053c
  • build(deps): bump WillAbides/setup-go-faster from 1.9.0 to 1.9.1 (#228) 61213fa
  • build(deps): bump WillAbides/setup-go-faster from 1.9.1 to 1.10.0 (#229) 64f1fe3
  • build(deps): bump actions/checkout from 3 to 4 (#233) 21c2c18
  • build(deps): bump WillAbides/setup-go-faster from 1.10.0 to 1.10.1 (#230) 80cf844
  • build(deps): bump WillAbides/setup-go-faster from 1.10.1 to 1.11.0 (#234) 82b2c54
  • Improve validation of pointer fields (#237) b4d96df
  • build(deps): bump WillAbides/setup-go-faster from 1.11.0 to 1.12.0 (#238) 12d5abb
  • build(deps): bump github.com/gookit/goutil from 0.6.12 to 0.6.14 (#243) aafe11f
  • Fix for Boolean Pointer Field Validation Error (#240) 8c4d6aa
  • build(deps): bump WillAbides/setup-go-faster from 1.12.0 to 1.13.0 (#249) c9a3e1a
  • build(deps): bump github/codeql-action from 2 to 3 (#251) cf7f910
  • ✅ test: add a test case for the issues #252 203d95f
  • ⬆️ dep: upgrade the deps to latest version e57b4eb
  • ✅ test: add a test case for the issues #246 372b694
  • ✅ test: add test case for issues #250 ab0111b
  • 💚 ci: fix go-version value error on go.yaml lint job af6f358
  • build(deps): bump WillAbides/setup-go-faster from 1.13.0 to 1.14.0 (#256) 46c37da
  • 📝 doc: update some code comment info 27b33f1

v1.5.1

01 Aug 14:12
Compare
Choose a tag to compare

Change Log

Fixed

  • 🐛 fix: resolve the slice sub item convert type fail. issues #206 18b0e03
  • 🐛 fix: call of reflect.Value.Interface on zero Value. issues #223 3142ae2

Update

  • 👔 up: enhanced support multi level slice item value check. see issues #221 0e59d42
  • 👔 up: update some logic for create new validation, format some codes 66dd220
  • ⚡ up: performance apply the "required" validator b074012

Other

  • ✅ test: add more assert check for test issues #213 a142ed7

v1.5.0

24 Jul 16:09
Compare
Choose a tag to compare

Change Log

Note: 💥 Starting from v1.5.0, go version < 1.18 will not be supported.

Update

  • up: replace the assert pkg from stretchr/testify to gookit/goutil b04bd7a
  • 👔 up: update some method usage and update some tests 9a0269c
  • ♻️ update: refactoring the slice item validate logic b5f1569
  • 💥 update: replace interface{} to any in some files 6b58d86
  • 💥 update: replace interface{} to any in remaining go files 526cd5a
  • Make private fields validation configurable (#202) 4d16ee9

Fixed

  • bug: fix required rule for map with nested slice (#210) 97df2bd

Other

  • build(deps): bump github.com/gookit/goutil from 0.4.0 to 0.6.0 in /_examples/httpdemo2 (#199) 3e23b0a
  • build(deps): bump github.com/gookit/goutil from 0.5.15 to 0.6.6 (#197) ad2520a
  • build(deps): bump github.com/gookit/goutil from 0.6.6 to 0.6.7 (#200) 51bb1d6
  • ⬆️ chore(ci): add tests on go1.10 and remove support go < 1.18 acc96a7
  • build(deps): bump github.com/gookit/goutil from 0.6.7 to 0.6.8 (#201) e86513d
  • ⬆️ chore(go): use the io.ReadAll instead of the ioutil.ReadAll e01fae9
  • bug: fix required rule for map with nested slice (#210) 97df2bd
  • build(deps): bump github.com/gookit/goutil from 0.6.8 to 0.6.9 (#212) c0e6083
  • build(deps): bump github.com/gookit/goutil from 0.6.9 to 0.6.10 (#214) bd322ae
  • build(deps): bump github.com/gookit/filter from 1.1.4 to 1.2.0 (#216) 4f76cdb
  • ⬆️ chore: update dep to latest, replace some interface{} to any 5dfa4ac
  • ⬆️ dep: upgrade dep to latest and update the README 0041602
  • 💚 ci: add codeql action script, fix some comment words error 266cb62
  • 💚 ci: add codeql action script, fix setup go error 020a8b4
  • 📝 doc: update README, add go.mod Go version badge 025951a

What's Changed

New Contributors


Full Changelog: v1.4.6...v1.5.0

v1.4.6

28 Dec 13:11
0d4b817
Compare
Choose a tag to compare

Change Log

  • 1d3b06e correctly validate embedded structs

What's Changed

Full Changelog: v1.4.5...v1.4.6

v1.4.5

22 Nov 09:57
97f1366
Compare
Choose a tag to compare

Change Log

Fixed

  • fix: #172 filtering string slice value failed on struct data. 087269d
  • fix json name tag parsing to ignore stuff after the comma, use struct field name if json tag name not set 42d952c

Feature

  • feat: enable slices of maps on structs 6815f54

Other

  • change field to value afe0982
  • use only latest go version in linter d2cb664
  • build(deps): bump github.com/gookit/goutil from 0.5.9 to 0.5.10 6bf5f18
  • build(deps): bump github.com/gookit/goutil from 0.5.10 to 0.5.11 1be8266
  • build(deps): bump github.com/gookit/goutil from 0.5.11 to 0.5.12 64a3d93
  • improvements to english text grammar e3b585f
  • build(deps): bump github.com/gookit/filter from 1.1.3 to 1.1.4 69a30a8
  • build(deps): bump github.com/gookit/goutil from 0.5.12 to 0.5.13 03f435e
  • build(deps): bump github.com/gookit/goutil from 0.5.13 to 0.5.15 3dda599
  • modify a Initialization of map 541a9ad
  • build(deps): bump WillAbides/setup-go-faster from 1.7.0 to 1.8.0 eacc975

New Contributors

Full Changelog: v1.4.4...v1.4.5

v1.4.4

26 Aug 02:24
48e0d19
Compare
Choose a tag to compare

Change Log

  • make attempt to fix issue b65b3a4
  • improve test to account for map order randomness 0750547

What's Changed

  • fix issue where message is not applied to all validaiton errors when StopOnError = false by @OscarVanL in #164

New Contributors

Full Changelog: v1.4.3...v1.4.4

v1.4.3

24 Aug 17:31
Compare
Choose a tag to compare

Change Log

Fixed

  • fix: #160 error message not works on use struct tag 'message 32f4d98
  • fix: #159 support compare string value for GtX,LtX... validator 67c93b3

Update

  • up: update the fetch variadic param kind logic d56c71f
  • up: add tests on go1.19 and rm go1.15, update some code styles 1190e34
  • up: add func for get coped global messages, fix some tests 46c7146

Other

  • chore: fix download gitw/chlog fail on release action 9b40050
  • build(deps): bump github.com/stretchr/testify from 1.7.5 to 1.8.0 9210600
  • build(deps): bump github.com/gookit/goutil from 0.5.5 to 0.5.6 1297fbc
  • build(deps): bump github.com/gookit/goutil from 0.5.6 to 0.5.7 e3d4e74
  • build(deps): bump github.com/gookit/filter from 1.1.2 to 1.1.3 4513457
  • build(deps): bump github.com/gookit/goutil from 0.5.7 to 0.5.8 5f1a773
  • build(deps): bump github.com/gookit/goutil from 0.5.8 to 0.5.9 6908db4
  • chore: update some comments, update examples for use Struct() 38e8d18
  • chore: update the readme for add more docs 2223675

What's Changed

  • 修正required_if和required_unless的中文语言包问题 by @caoyong2619 in #153

New Contributors

Full Changelog: v1.4.2...v1.4.3

v1.4.2

27 Jun 07:20
Compare
Choose a tag to compare

Change Log

Fixed

  • fix: input validator value is not right on use ptr field. see: #143 da38113
  • fix: #140 requiredIf check error on cmp-field kind same is string 150c83e

Update

  • up: add new method for dataFace, add new test file 1d8cfaf
  • up: update some validator and util func logic, update tests f8fbe77
  • up: add TryGet for data source, return zero check. and struct always return exist on zero value 108ed2e
  • up: add tryGet for Validation, return zero check. and update some check logic ea7dfcf
  • up: update readme and add more unit tests for struct check 4cafcdc
  • up: update the gh action script, add changelog generate on release 6a3c5f6

Other

  • build(deps): bump github.com/gookit/goutil from 0.5.1 to 0.5.2 3caa885
  • build(deps): bump github.com/stretchr/testify from 1.7.1 to 1.7.2 9b83d02
  • build(deps): bump github.com/gookit/goutil from 0.5.2 to 0.5.4 660a522
  • build(deps): bump github.com/stretchr/testify from 1.7.2 to 1.7.3 0f15da9
  • chore: update readme and some comments 785468a
  • build(deps): bump github.com/stretchr/testify from 1.7.3 to 1.7.4 308137c
  • build(deps): bump github.com/gookit/goutil from 0.5.4 to 0.5.5 8823d62
  • build(deps): bump github.com/stretchr/testify from 1.7.4 to 1.7.5 e823d73
  • chore: add more unit tests and fix some code style 57f2c85
  • build(deps): bump actions/checkout from 2 to 3 427098f
  • chore: update the release action for gen changelog 8592217

Full Changelog: v1.4.1...v1.4.2

v1.4.1

07 May 16:11
Compare
Choose a tag to compare

Change Log

Fixed

  • fix: on reflect.UintX value, cannot call Int() method de5ccbc
  • test: fix undefined: reflect.Pointer on go 1.16 f6a433d

Other

  • chore: update readme, add some doc for errors 11b83cb
  • chore: update some code style and update some comments d63657f
  • style: update zh and en readme, add more docs 58ff03c