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

tarantool / go-config / 28019938860
87%
master: 87%

Build:
Build:
LAST BUILD BRANCH: bigbes/gh-no-fix-empty-scalar
DEFAULT BRANCH: master
Ran 23 Jun 2026 10:33AM 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 10:14AM UTC coverage: 85.824% (-1.0%) from 86.866%
28019938860

Pull #81

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.
Pull Request #81: jsonschema: schema-aware null coercion with configurable scalar policy

101 of 170 new or added lines in 5 files covered. (59.41%)

3929 of 4578 relevant lines covered (85.82%)

94.56 hits per line

Uncovered Changes

Lines Coverage ∆ File
64
56.46
validators/jsonschema/coerce.go
5
96.04
-1.76% tarantool/builder.go
Jobs
ID Job ID Ran Files Coverage
1 28019938860.1 23 Jun 2026 10:33AM UTC 43
85.82
GitHub Action Run
Source Files on build 28019938860
  • Tree
  • List 43
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #81
  • PR Base - 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