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

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

Build:
Build:
LAST BUILD BRANCH: master
DEFAULT BRANCH: v8
Ran 25 Jun 2025 07:37PM UTC
Jobs 1
Files 34
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

25 Jun 2025 07:36PM UTC coverage: 73.686% (+0.008%) from 73.678%
15885549350

push

github

web-flow
Fix: Validator panics when 'nil' is used along with required if for slices and maps (#1442)

## Fixes 
Added support to check for 'nil' values in case of maps and slices when
used with required if. (Previously only lengths were being checked as a
result using nil with required if would lead to a panic since the
program tried to convert 'nil' to an integer)
Created a separate case for arrays to only check lengths since arrays
cannot be nil in go.

Check #1437 for more details.

**Make sure that you've checked the boxes below before you submit PR:**
- [x] Tests exist or have been written that cover this particular
change.

@go-playground/validator-maintainers

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

14332 of 19450 relevant lines covered (73.69%)

77.25 hits per line

Jobs
ID Job ID Ran Files Coverage
1 15885549350.1 25 Jun 2025 07:37PM UTC 34
73.69
GitHub Action Run
Source Files on build 15885549350
  • Tree
  • List 34
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • ec374ef0 on github
  • Prev Build on master (#15543240330)
  • Next Build on master (#15885782943)
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

© 2025 Coveralls, Inc