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

go-playground / validator / 21856889411 / 1
74%
v8: 100%

Build:
Build:
LAST BUILD BRANCH: dependabot/go_modules/golang.org/x/crypto-0.48.0
DEFAULT BRANCH: v8
Ran 10 Feb 2026 08:13AM UTC
Files 34
Run time 1s
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

10 Feb 2026 08:12AM UTC coverage: 73.849% (+0.02%) from 73.832%
21856889411.1

Pull #1530

github

veeceey
fix: prevent panic in unique validation with nil pointer elements

The `unique` tag panics when validating slices or maps containing nil
pointer elements. This affects three code paths in isUnique: slices
without a field param, slices with a field param (unique=Field), and
maps with pointer values.

The fix safely skips nil elements after reflect.Indirect returns a zero
Value, and treats multiple nil entries as duplicates (not unique).

Fixes #1319

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Pull Request #1530: fix: prevent panic in unique validation with nil pointer elements

14470 of 19594 relevant lines covered (73.85%)

81.84 hits per line

Source Files on job 21856889411.1
  • Tree
  • List 34
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 21856889411
  • e0f38126 on github
  • Prev Job for on fix-unique-nil-panic (#21733780062.1)
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