• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

gookit / validate / 40864170708
91%

Build:
DEFAULT BRANCH: master
Ran 29 Oct 2026 11:17AM UTC
Jobs 6
Files 31
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Oct 2026 11:16AM UTC coverage: 90.94% (-0.2%) from 91.149%
40864170708

push

github

inhere
fix(validate): resolve an acronym-style field name ignoring case

A cross-field rule (required_without_all, required_if, eq_field ...) and the getters
resolved a name with UpperFirst only, so "md5" became "Md5" and missed the field MD5
(likewise "url" for URL): the rule then treated the field as an empty value, which
produced a confusing required error (#347).

- StructData.tryGetRV falls back to a case-insensitive match over the struct fields
  when the exact and UpperFirst names both miss; the first declared field wins and
  only the first segment of a path is matched.
- the enum rules report an unsupported map value instead of "value must be in the
  enum [...]", which reads like the value is simply not in the list.

The first attempt of this change reported every rule field that HasField did not know,
which broke legitimate uses (a lower-case name, a dotted path into a nil nested
pointer, the paths of an empty slice), so this resolution fix replaces it.

Tests: the #347 struct with lower-case rule names, the getters with all casings, an
unknown field still missing, and the map message of the enum rules.

36 of 50 new or added lines in 3 files covered. (72.0%)

4286 of 4713 relevant lines covered (90.94%)

5.97 hits per line

Uncovered Changes

Lines Coverage ∆ File
11
62.9
-13.57% internal/validators/enum.go
2
92.59
-0.11% data_source.go
1
81.95
0.23% validating.go
Jobs
ID Job ID Ran Files Coverage
1 Go-stable - 40864170708.1 29 Oct 2026 11:17AM UTC 31
87.49
GitHub Action Run
2 Go-1.21 - 40864170708.2 29 Oct 2026 11:17AM UTC 30
89.52
GitHub Action Run
3 Go-1.24 - 40864170708.3 29 Oct 2026 11:17AM UTC 31
88.02
GitHub Action Run
4 Go-1.22 - 40864170708.4 29 Oct 2026 11:17AM UTC 31
89.59
GitHub Action Run
5 Go-1.23 - 40864170708.5 29 Oct 2026 11:17AM UTC 31
89.59
GitHub Action Run
6 Go-1.25 - 40864170708.6 29 Oct 2026 11:17AM UTC 31
88.02
GitHub Action Run
Source Files on build 40864170708
  • Tree
  • List 31
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • aa75fd25 on github
  • Prev Build on master (#40861688826)
  • Next Build on master (#40878235671)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc