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

phcurado / zoi / 998cb99302b73b2b4de0d8f92f20b9ff0d28ab85-PR-224
99%
main: 99%

Build:
Build:
LAST BUILD BRANCH: feat/stored-value-validation
DEFAULT BRANCH: main
Ran 04 Oct 2026 12:15PM UTC
Jobs 1
Files 84
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

04 Oct 2026 12:13PM UTC coverage: 99.465% (+0.001%) from 99.464%
998cb99302b73b2b4de0d8f92f20b9ff0d28ab85-PR-224

Pull #224

github

leonqadirie
fix: accept whole-number floats in JSON Schema integer schemas

JSON Schema's integer type accepts numbers with no fractional part, including
floats such as 1.0. Schemas decoded by Zoi.from_json_schema/1 now accept these
values and preserve them as floats. Values such as 1.5 still fail validation,
and Zoi.integer/1 continues to reject all floats.

The decoder enables an internal integral_floats flag on the integer type.
Keeping this type preserves the integer validation error and the "integer"
type when converting the schema back to JSON Schema.

Update multipleOf validation to handle accepted floats without raising an
error in rem/2.

Part of #212.
Pull Request #224: fix: accept whole-number floats in JSON Schema integer schemas

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

2 existing lines in 1 file now uncovered.

2046 of 2057 relevant lines covered (99.47%)

343.65 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
95.83
0.28% lib/zoi/types/integer.ex
Jobs
ID Job ID Ran Files Coverage
1 998cb99302b73b2b4de0d8f92f20b9ff0d28ab85-PR-224.1 04 Oct 2026 12:15PM UTC 84
99.47
GitHub Action Run
Source Files on build 998cb99302b73b2b4de0d8f92f20b9ff0d28ab85-PR-224
  • Tree
  • List 84
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #224
  • PR Base - main (#E1220318...)
  • 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