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

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

Build:
Build:
LAST BUILD BRANCH: bigbes/gh-no-update-actions
DEFAULT BRANCH: master
Ran 23 Jul 2026 06:57AM 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

23 Jul 2026 06:48AM UTC coverage: 87.258% (+0.1%) from 87.148%
29986592922

Pull #84

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.
Pull Request #84: jsonschema: schema-aware scalar coercion

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

4061 of 4654 relevant lines covered (87.26%)

112.99 hits per line

Jobs
ID Job ID Ran Files Coverage
1 29986592922.1 23 Jul 2026 06:57AM UTC 44
87.26
GitHub Action Run
Source Files on build 29986592922
  • Tree
  • List 44
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #84
  • PR Base - 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