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

go-playground / validator / 20326963791
74%
v8: 100%

Build:
Build:
LAST BUILD BRANCH: fix-unique-map-nil-values
DEFAULT BRANCH: v8
Ran 18 Dec 2025 05:22AM UTC
Jobs 1
Files 34
Run time 5min
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

18 Dec 2025 05:22AM UTC coverage: 73.765% (+0.02%) from 73.749%
20326963791

Pull #1508

github

shindonghwi
fix: resolve panic when using cross-field validators with ValidateMap

When using validators like required_if, required_unless, excluded_if,
or excluded_unless with ValidateMap(), the validator panicked with
"Invalid field namespace" because getStructFieldOKInternal couldn't
navigate primitive types to find referenced fields.

This change makes getStructFieldOKInternal return found=false instead
of panicking when it encounters types it can't navigate. This allows
cross-field validators to handle the "not found" case gracefully using
their defaultNotFoundValue parameter.

Fixes #893
Pull Request #1508: fix: resolve panic when using cross-field validators with ValidateMap

1 of 1 new or added line in 1 file covered. (100.0%)

14390 of 19508 relevant lines covered (73.76%)

80.62 hits per line

Jobs
ID Job ID Ran Files Coverage
1 20326963791.1 18 Dec 2025 05:22AM UTC 34
73.76
GitHub Action Run
Source Files on build 20326963791
  • Tree
  • List 34
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1508
  • PR Base - master (#20287228494)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc