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

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

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

03 Jun 2025 03:41PM UTC coverage: 73.674% (+0.01%) from 73.661%
15421773123

push

github

web-flow
Fix: support validation for map values with struct types (#1433)

## Fixes 

Fixed support for validating struct values inside map fields.
Previously, if no tag followed `endkeys`, the struct values were
skipped. This PR ensures such struct values are still validated
according to their own tags.

### Enhancements to validation logic:
* Updated `validator.go` to handle map values that are structs or
pointers to structs by diving into their fields for validation.
* Added test cases covering struct validation in maps, including basic
rules, pointer structs, nested structs, and edge cases like nil
pointers.

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

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

14323 of 19441 relevant lines covered (73.67%)

76.16 hits per line

Jobs
ID Job ID Ran Files Coverage
1 15421773123.1 03 Jun 2025 03:42PM UTC 34
73.67
GitHub Action Run
Source Files on build 15421773123
  • Tree
  • List 34
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • dfc7ccd4 on github
  • Prev Build on master (#15330172365)
  • Next Build on master (#15543240330)
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