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

phcurado / zoi / 0a4717bf4e869b8330fede1bbd1b8bee55414e22-PR-121
100%
main: 100%

Build:
Build:
LAST BUILD BRANCH: deprecated-stacktrace
DEFAULT BRANCH: main
Ran 09 Dec 2025 04:23PM 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 03:42PM UTC coverage: 100.0%. Remained the same
0a4717bf4e869b8330fede1bbd1b8bee55414e22-PR-121

Pull #121

github

assimelha
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.
Pull Request #121: Add JSONSchema.Encoder for Zoi.Types.Default

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

1545 of 1545 relevant lines covered (100.0%)

398.92 hits per line

Jobs
ID Job ID Ran Files Coverage
1 0a4717bf4e869b8330fede1bbd1b8bee55414e22-PR-121.1 09 Dec 2025 04:23PM UTC 66
100.0
GitHub Action Run
Source Files on build 0a4717bf4e869b8330fede1bbd1b8bee55414e22-PR-121
  • Tree
  • List 66
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #121
  • PR Base - main (#7710AB42...)
  • 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