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

agentjido / req_llm / af324417b37fdc158982d25bf60265054a2fb852
49%

Build:
DEFAULT BRANCH: main
Ran 27 Oct 2025 09:02PM UTC
Jobs 4
Files 83
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

27 Oct 2025 09:00PM UTC coverage: 52.623% (+0.07%) from 52.556%
af324417b37fdc158982d25bf60265054a2fb852

push

github

web-flow
Add JSON Schema validation using JSV library (#134)

* Add JSON Schema validation using JSV library

Adds client-side JSON Schema validation to catch invalid schemas
before sending to LLM providers. Uses JSV library for draft 2020-12
and draft 7 support.

Changes:
- Add jsv ~> 0.11 dependency
- Update ReqLLM.Schema.validate/2 to validate :json schemas with JSV
- Add validate_with_jsv/2 and format_jsv_errors/1 helper functions
- Update CHANGELOG.md with new validation feature

This catches errors like embedding JSON strings instead of parsed
maps in schemas, providing better error messages before API calls.

* Enhance JSON Schema validation in ReqLLM.Schema

- Updated `validate_with_jsv/2` to handle additional error types (RuntimeError, JSV.BuildError) during validation.
- Added comprehensive tests for various JSON Schema validation scenarios, including nested structures, type mismatches, and required fields.
- Improved error handling to provide clearer feedback for validation failures.

These changes strengthen the JSON Schema validation capabilities, ensuring more robust error detection and handling for user-defined schemas.

---------

Co-authored-by: Mike Hostetler <84222+mikehostetler@users.noreply.github.com>

10 of 15 new or added lines in 1 file covered. (66.67%)

1 existing line in 1 file now uncovered.

3651 of 6938 relevant lines covered (52.62%)

435.72 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
5
89.21
0.41% lib/req_llm/schema.ex

Uncovered Existing Lines

Lines Coverage ∆ File
1
72.41
-3.45% lib/req_llm/providers/openai/param_profiles.ex
Jobs
ID Job ID Ran Files Coverage
1 af324417b37fdc158982d25bf60265054a2fb852.1 27 Oct 2025 09:02PM UTC 83
52.55
GitHub Action Run
2 af324417b37fdc158982d25bf60265054a2fb852.2 27 Oct 2025 09:02PM UTC 83
52.55
GitHub Action Run
3 af324417b37fdc158982d25bf60265054a2fb852.3 27 Oct 2025 09:02PM UTC 83
52.57
GitHub Action Run
4 af324417b37fdc158982d25bf60265054a2fb852.4 27 Oct 2025 09:02PM UTC 83
52.55
GitHub Action Run
Source Files on build af324417b37fdc158982d25bf60265054a2fb852
  • Tree
  • List 83
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • af324417 on github
  • Prev Build on main (#09E28788...)
  • Next Build on main (#873E7683...)
  • 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