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

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

Build:
Build:
LAST BUILD BRANCH: master
DEFAULT BRANCH: v8
Ran 09 Jun 2025 07:49PM UTC
Jobs 1
Files 34
Run time 4min
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

09 Jun 2025 07:48PM UTC coverage: 73.678% (+0.004%) from 73.674%
15543240330

push

github

web-flow
Omitzero does not work with slice and map bug (#1436)

## Fixes 

Fixed a bug where using omitzero still validated empty structs and maps.
This PR ensures that if omitzero is used as a tag then empty slices and
maps are not validated.

* Modified the `baked_in.go` file to ensure that slices and maps are
considered non zero only when they are not nil and they are not empty.
* Added tests to ensure empty slices and maps are not validated while
using omitzero tag.

Check #1424 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

3 of 4 new or added lines in 1 file covered. (75.0%)

1 existing line in 1 file now uncovered.

14326 of 19444 relevant lines covered (73.68%)

76.55 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
96.09
0.01% baked_in.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
96.09
0.01% baked_in.go
Jobs
ID Job ID Ran Files Coverage
1 15543240330.1 09 Jun 2025 07:49PM UTC 34
73.68
GitHub Action Run
Source Files on build 15543240330
  • Tree
  • List 34
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 0e3e2f99 on github
  • Prev Build on master (#15421773123)
  • Next Build on master (#15885549350)
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