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

tarantool / go-config / 30360773524
87%

Build:
DEFAULT BRANCH: master
Ran 28 Jul 2026 12:53PM UTC
Jobs 1
Files 44
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

28 Jul 2026 12:51PM UTC coverage: 87.258% (+0.1%) from 87.148%
30360773524

push

github

bigbes
jsonschema: schema-aware scalar coercion

Environment-variable collectors deliver every value as a string, so a
strict scalar schema such as {"type": "boolean"} rejects an override like
MYAPP_FLAG=true even though the typed decode would accept it. Consumers
had to widen every env-overridable scalar to a ["boolean", "string"]
union to work around this.

Add coerceScalars, a sibling of coerceNulls, that walks the validation
data alongside the schema and parses a string into the scalar type the
schema demands (boolean, integer or number), resolving $ref and
combinators via the existing helpers. A string is coerced only when the
schema does not also permit "string" and only when it parses; an
unparseable string is left unchanged so validation still reports a type
error. Like null coercion it rewrites the validation copy only, never the
config tree, whose decode already handles string scalars.

Wire it into Validator.Validate after null coercion and cover it with
tests for the bool string forms, integer/number strings, unparseable
strings, genuine string fields, unions, and nested/array locations.

40 of 40 new or added lines in 2 files covered. (100.0%)

4061 of 4654 relevant lines covered (87.26%)

94.52 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30360773524.1 28 Jul 2026 12:53PM UTC 44
87.26
GitHub Action Run
Source Files on build 30360773524
  • Tree
  • List 44
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d80cf53d on github
  • Prev Build on master (#28597893372)
  • Delete
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