Skip to content

Releases: gookit/validate

v1.4.0

07 May 06:28
Compare
Choose a tag to compare

Change Log

Feature

  • feat: support validate value by validate.Val(). see: #59 81d61ca
  • feat: support validate array/slice items. see: #124 f48988b

Refactor

  • refactor: mv convert input field value type as validator func th0 arg type 22df26f

Update

  • update: IsArray - check slice type will return true 4378d5f

Other

  • chore: rename some func, add more unit tests and more 56ca59e
  • style: update readme docs b52f1b3

Full Changelog: v1.3.2...v1.4.0

v1.3.2

06 May 09:15
Compare
Choose a tag to compare

Change Log

Update

  • Update full url regex to include percentage sign 718b7bf

Fixed

  • fix: #135 min validate not works on value at 0 ~ 1 813c99c
  • test: fix some unit tests error, update github actions 6549137
  • fix: #125 fv.Call() will panic on rftVal.Kind() is Invalid 1baf78b
  • test: fix some testing error and add more test cases 71cf6c7

Other

  • build(deps): bump github.com/stretchr/testify from 1.7.0 to 1.7.1 657df37
  • build(deps): bump github.com/gookit/goutil from 0.4.4 to 0.4.6 ed6716c
  • chore: update readme and some comments 5815ccb
  • build(deps): bump github.com/gookit/goutil from 0.4.6 to 0.5.0 d4da2aa
  • build(deps): bump github.com/gookit/goutil from 0.5.0 to 0.5.1 a4a6809
  • chore: add and update some error messages cb6952c
  • style: update the en readme 75f676d

New Contributors

Full Changelog: v1.3.1...v1.3.2

v1.3.1

06 Mar 06:39
Compare
Choose a tag to compare

Full Changelog: v1.3.0...v1.3.1

v1.3.0

03 Mar 17:47
Compare
Choose a tag to compare

Change Log

Fixed

Update

Feature

  • support label tag for struct validate error field nested display name 88d909b
  • feat: allow use label on struct tag for define e5174a0
  • feat: only collect sub-struct rule on current field has rule. ed42e34
  • refactor: split field label and field name map 70c4e8b

Other

  • Bump github.com/gookit/goutil from 0.3.12 to 0.3.13 a96b75b
  • Bump github.com/gookit/goutil from 0.3.13 to 0.3.14 a048291
  • Bump github.com/stretchr/testify from 1.6.1 to 1.7.0 88fc8b6
  • Bump github.com/gookit/goutil from 0.3.14 to 0.3.15 84c4dfb
  • Bump github.com/gookit/goutil from 0.3.15 to 0.4.0 71a300e
  • Validate.Errors supports specifying output fields 0ff1414
  • del err comment 5bd7fa7
  • style: update readme, add some examples demo 49d020c
  • style: update readme, add filter docs b271bba
  • doc: use docsify render doc on pages 6deb3a0
  • chore: update readme 14557df
  • build(deps): bump github.com/gookit/goutil from 0.4.0 to 0.4.1 3d8981f
  • build(deps): bump github.com/gookit/goutil from 0.4.1 to 0.4.2 123e0c0
  • build(deps): bump github.com/gookit/goutil from 0.4.2 to 0.4.4 f2ebfa6
  • prof: use global translater for each valiation instance 2658e93
  • prof: modify some message translate logic a85e324
  • chore: add more tests assert check for issues#103 910b755

v1.2.11

10 Apr 16:16
Compare
Choose a tag to compare

Full Changelog: v1.2.10...v1.2.11

v1.2.10

10 Apr 16:05
Compare
Choose a tag to compare

What's Changed

  • Bump github.com/gookit/goutil from 0.3.8 to 0.3.10 by @dependabot in #86
  • Added collection of validation rules for values from arrays, slices, and maps (only for structures) by @AlexBrin in #89

Full Changelog: v1.2.9...v1.2.10

v1.2.9

16 Mar 06:11
Compare
Choose a tag to compare
  • Support mulit level struct validate (thanks @AlexBrin)
  • Fix some bugs

v1.2.8

21 Jan 07:03
Compare
Choose a tag to compare
Release v1.2.8

v1.2.7

20 Jan 12:54
Compare
Choose a tag to compare
Release v1.2.7

v1.2.6

20 Jan 07:18
Compare
Choose a tag to compare
  • 修复一些BUGs
  • 支持子结构体字段验证(当前仅支持二级子结构体) thanks @fishyww