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

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

Build:
Build:
LAST BUILD BRANCH: master
DEFAULT BRANCH: v8
Ran 15 Feb 2025 04:29PM UTC
Jobs 1
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

15 Feb 2025 04:28PM UTC coverage: 74.348% (+0.03%) from 74.319%
13346771296

push

github

web-flow
feat: Add support for omitting empty and zero values in validation (including nil pointer and empty content of pointer) (#1289)

## Fixes Or Enhances

**Add the `omitzero` Tag:**
- It allows you to ignore the subsequent validations if the value of a
field is empty
- If the field is a pointer and the pointer is nil, ignore the
subsequent validations
- If the field is a pointer and the pointer is not nil, but the content
value of the pointer is zero, the subsequent validations will be ignored


**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

25 of 27 new or added lines in 3 files covered. (92.59%)

12718 of 17106 relevant lines covered (74.35%)

84.45 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
96.11
-0.08% baked_in.go
Jobs
ID Job ID Ran Files Coverage
1 13346771296.1 15 Feb 2025 04:29PM UTC 31
74.35
GitHub Action Run
Source Files on build 13346771296
  • Tree
  • List 31
  • Changed 7
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • f5f02dcb on github
  • Prev Build on master (#13334149160)
  • Next Build on master (#13346787143)
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