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

thedevsaddam / govalidator / 196 / 5
89%
master: 89%

Build:
DEFAULT BRANCH: master
Ran 03 Jan 2019 08:26AM UTC
Files 8
Run time 0s
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

28 Dec 2018 08:31PM UTC coverage: 89.459% (+1.3%) from 88.14%
196.5

push

travis-ci

web-flow
Merge pull request #51 from RexSkz/rex/prevent-panic-caused-by-null-value

If the request body is a JSON like `{"test":null}`, govalidator will panic when executing `traverseMap`.

```go
var m = make(map[string]interface{})
json.Unmarshal([]byte(`{"test":null}`), &m)
```

Since `m["test"]` is `nil`, `reflect.TypeOf(v)` will panic. This PR fixes the bug by dropping null values in json.

1307 of 1461 relevant lines covered (89.46%)

20.0 hits per line

Source Files on job 196.5
  • Tree
  • List 0
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 188
  • Travis Job 196.5
  • 8625caec on github
  • Prev Job for on master (#190.1)
  • Next Job for on master (#210.1)
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