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

phcurado / zoi / 6798199a1f85015b0fab08841ad5d4e2f72eeeb4
100%

Build:
DEFAULT BRANCH: main
Ran 09 Dec 2025 05:11PM UTC
Jobs 1
Files 66
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

09 Dec 2025 05:11PM UTC coverage: 100.0%. Remained the same
6798199a1f85015b0fab08841ad5d4e2f72eeeb4

push

github

web-flow
Add JSONSchema.Encoder for Zoi.Types.Default (#121)

* Add JSONSchema.Encoder for Zoi.Types.Default

This adds JSON Schema encoding support for schemas wrapped with `Zoi.default/2`.
Previously, attempting to encode a schema like:

    Zoi.enum(["a", "b"]) |> Zoi.default("a")

Would raise "Encoding not implemented for schema".

Now it correctly encodes the inner type and adds the `default` field:

    %{type: :string, enum: ["a", "b"], default: "a"}

Includes tests for string, enum, optional enum, and integer defaults.

* Consolidate default value tests per code review feedback

Move default value test case into "different schemas to json" test
since Default is an encapsulated type that doesn't need type-specific
testing.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>

1 of 1 new or added line in 1 file covered. (100.0%)

1545 of 1545 relevant lines covered (100.0%)

398.19 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6798199a1f85015b0fab08841ad5d4e2f72eeeb4.1 09 Dec 2025 05:11PM UTC 66
100.0
GitHub Action Run
Source Files on build 6798199a1f85015b0fab08841ad5d4e2f72eeeb4
  • Tree
  • List 66
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 6798199a on github
  • Prev Build on main (#7710AB42...)
  • Next Build on main (#8F7B4CCF...)
  • 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