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

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

Build:
Build:
LAST BUILD BRANCH: fix/self-referential-extraction-loop
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

Jobs
ID Job ID Ran Files Coverage
1 13346771296.1 15 Feb 2025 04:29PM UTC 0
74.35
GitHub Action Run
Source Files on build 13346771296
Detailed source file information is not available for this build.
  • 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 TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc