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

tarantool / go-config / 28025821951
87%

Build:
DEFAULT BRANCH: master
Ran 23 Jun 2026 12:23PM UTC
Jobs 1
Files 43
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

23 Jun 2026 12:22PM UTC coverage: 87.134% (+0.3%) from 86.866%
28025821951

push

github

bigbes
jsonschema: schema-aware null coercion with configurable scalar policy

With ToAny now yielding nil for empty values, validation needs to know
the intended empty shape, which only the schema carries. Add a coercion
pass (coerceNulls) run between ToAny and Validate: it walks the data
alongside the compiled schema (resolving $ref and allOf/anyOf/oneOf) and
rewrites a null into {} where the schema expects an object and [] where
it expects an array. Nullable schemas keep null.

The ambiguous scalar case (string/number/bool) is governed by
NullCoercion: NullLeave (default), NullDrop (treat empty as unset) or
NullZero (typed zero value). Configure it per-validator via
WithNullCoercion, per-build via Builder.WithJSONSchema options or
tarantool.Builder.WithNullCoercion, or globally via DefaultNullCoercion.

160 of 169 new or added lines in 4 files covered. (94.67%)

2 existing lines in 1 file now uncovered.

3989 of 4578 relevant lines covered (87.13%)

93.11 hits per line

Uncovered Changes

Lines Coverage ∆ File
9
93.88
validators/jsonschema/coerce.go

Coverage Regressions

Lines Coverage ∆ File
2
93.33
0.0% tree/convert.go
Jobs
ID Job ID Ran Files Coverage
1 28025821951.1 23 Jun 2026 12:23PM UTC 43
87.13
GitHub Action Run
Source Files on build 28025821951
  • Tree
  • List 43
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 2d2a5e5b on github
  • Prev Build on master (#27195044128)
  • Delete
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

© 2026 Coveralls, Inc