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

phcurado / zoi
99%
main: 99%

Build:
Build:
LAST BUILD BRANCH: feat/stored-value-validation
DEFAULT BRANCH: main
Repo Added 03 Aug 2025 07:56AM UTC
Token nGnpllL1k2Tfme3BKrwDh6hrKHamP3a5l regen
Build 582 Last
Files 87
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

LAST BUILD ON BRANCH fix/json-schema-integer-float
branch: fix/json-schema-integer-float
CHANGE BRANCH
x
Reset
Sync Branches
  • fix/json-schema-integer-float
  • add-elixir-basic-types-and-custom-typespec
  • add-error-types
  • add-json-schema-encoder-for-default
  • allow-structs-in-discriminated-unions
  • array-unique-items
  • atom-type
  • autogenerated-docs
  • badges
  • base-types
  • benchmark
  • bump-elixir-version
  • cache-dialyxir
  • codecs
  • context
  • coverage-discriminated-union
  • custom-email-formats
  • date-main-types
  • date-refinements
  • decimal
  • decimal-jsonschema
  • deprecated-json-schema
  • deprecated-stacktrace
  • describe-protocol
  • describe-struct
  • discriminated-union-variant-error
  • doc-to-description
  • document-schema-type
  • ecto-schema-changeset-integration
  • elixir-1.19
  • elixir-120-version
  • elixir-19-structs
  • enum-discriminators
  • enum-errors
  • enum-key-value-coercion
  • example-description-metadata
  • example-directive
  • extend-type
  • feat-jsonschema-opts-decoder
  • feat-one-of
  • feat/add-github-actions
  • feat/datetime
  • feat/object-string-keys
  • feat/proposal-optional-type-rework
  • feat/refactor-strict-objects
  • feat/stored-value-validation
  • feat/struct-json-schema
  • feat/type-spec
  • fix-242
  • fix-244
  • fix-array-error-path-and-incorrect-tests
  • fix-comma-example
  • fix-deprecated-extend-map
  • fix-describe-decimal
  • fix-elixir-120-warnings
  • fix-enum-spec
  • fix-enum-values
  • fix-float-integer-coercion
  • fix-fractional-multiple-of
  • fix-json-schema-date-strings
  • fix-json-schema-nested
  • fix-json-schema-objects
  • fix-metadata-types
  • fix-nested-keyword-error
  • fix-nested-typespec-overrides
  • fix-regex-case
  • fix-string-coercion
  • fix-string-keys-map
  • fix-struct-typespec-nilability
  • fix-uri-email-formats
  • fix-url-regex
  • fix-zoi-struct-default
  • fix/atom-enum-coercion
  • fix/coerced-key-collisions
  • fix/default-metadata
  • fix/docs-zoi-type
  • fix/intersection-object-results
  • fix/json-schema-any
  • fix/map-struct-specs
  • fix/union-branch-refinements
  • followup-typespec-nil-dedup
  • function-type
  • gt-lt-refinements
  • guides
  • guides-group
  • image-logo
  • improve-docs
  • improve-docs-with-guides
  • improve-form-error-docs
  • improve-object-keyword
  • inspect-protocol
  • intersection-type
  • json-schema
  • json-schema-combinators
  • json-schema-contains
  • json-schema-dates
  • json-schema-metadata
  • json-schema-pattern-properties
  • json-schema-prefix-items
  • json-schema-property-counts
  • json-schema-property-names
  • json-schema-regex
  • json-schema-regex-length
  • keyword-type
  • lazy-type
  • literal-type
  • main
  • map-errors
  • map-on-docs
  • map-parse
  • map-type
  • mapset-type
  • metadata
  • mfa-lazy-type
  • multiple-of
  • nested-structure-json-schema
  • non_neg-refinement
  • null-type
  • nullish-type
  • object-empty-values
  • object-keys
  • object-map
  • object-mfa-transform
  • parse-raise
  • partial-array-context-errors
  • perf/parser-constructor-overhead
  • pick-omit-schemas
  • plain-struct-type
  • positive-negative-validation
  • preserve-map
  • prettify-errors
  • propagate-nullable-opts
  • readme-docs
  • readme-metadata-reference
  • refactor-errors
  • required-type
  • self-documenting-opts
  • small-improv-readme
  • sponsor
  • string-boolean-type
  • string-regex
  • string_literal_typespec
  • test-forms
  • test-improvements
  • time
  • transform-docs
  • transform-refinement-error-spec
  • traverse-schema-helper
  • type-internal-refinements
  • type-spec-protocol
  • union-intersection-custom-error
  • unrecognized_keys-maps
  • upd-decimal-lib
  • url
  • uuid
  • validations
  • zoi-effect-order
  • zoi-forms

06 Oct 2026 04:08PM UTC coverage: 99.431% (+0.005%) from 99.426%
7240463d54c3e2c396cb3f73d9416fbb0d99b710-PR-224

Pull #224

github

leonqadirie
refactor: move integer check into Zoi.Validations

Matches the shared-module approach proposed on #224 instead of adding a
separate Zoi.Validations.Integer module.
Pull Request #224: fix: accept whole-number floats in JSON Schema integer schemas

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

2097 of 2109 relevant lines covered (99.43%)

360.14 hits per line

Relevant lines Covered
Build:
Build:
2109 RELEVANT LINES 2097 COVERED LINES
360.14 HITS PER LINE
Source Files on fix/json-schema-integer-float
  • Tree
  • List 84
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
7240463d... fix/json-schema-integer-float refactor: move integer check into Zoi.Validations Matches the shared-module approach proposed on #224 instead of adding a separate Zoi.Validations.Integer module. Pull #224 06 Oct 2026 04:09PM UTC leonqadirie github
99.43
ac080255... fix/json-schema-integer-float fix: encode decoded integer schemas back to integer type Moves the whole-number check into Zoi.Validations.Integer so both the decoder and the encoder can refer to it, per review on #224. The encoder maps the refine on a number schema to type: :i... Pull #224 06 Oct 2026 04:06PM UTC leonqadirie github
99.43
6595f8e8... fix/json-schema-integer-float refactor: validate decoded integers with a number schema and refine Keeps Zoi.Types.Integer unchanged, per review feedback on #224. The decoder now builds integer schemas from Zoi.number and rejects fractional values in a refine. Pull #224 05 Oct 2026 04:00PM UTC leonqadirie github
99.43
fc532020... fix/json-schema-integer-float chore: revert fractional multipleOf support for integer schemas This reverts commit 935fb7c. Its float quotient check does not follow the JSON Schema definition of multipleOf, which requires exact division: it rejects 0.3 for multipleOf: 0.1. Zoi... Pull #224 04 Oct 2026 12:24PM UTC leonqadirie github
99.46
935fb7cd... fix/json-schema-integer-float fix: support fractional multipleOf on decoded integer schemas JSON Schema allows a fractional multipleOf on integer schemas, such as {"type": "integer", "multipleOf": 0.5}. Zoi.from_json_schema/1 passed the value through to the integer type, whos... Pull #224 04 Oct 2026 12:21PM UTC leonqadirie github
99.47
998cb993... fix/json-schema-integer-float 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 a... Pull #224 04 Oct 2026 12:15PM UTC leonqadirie github
99.47
fd0df749... fix/json-schema-integer-float 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 a... Pull #224 04 Oct 2026 12:08PM UTC leonqadirie github
99.47
See All Builds (582)

Badge your Repo: zoi

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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