jonasschmidt/ex_json_schema
69.2
Adequate · 15 November 2026
2.3k
lines of production code
Elixir
primary language
5
measurements over time
What this system is
ExJsonSchema is an Elixir library that validates data against JSON Schema specifications, specifically supporting drafts 4, 6, and 7. It provides robust schema resolution with support for remote references and meta-schema validation, while returning detailed, structured error objects to pinpoint validation failures. The system includes built-in format validators and customizable error formatting to ensure compliance with standard test suites.
Features
Initial release of ExJsonSchema with multi-draft support and validation features
This entry introduces the ExJsonSchema library, a JSON Schema validator supporting draft 4, 6, and 7 specifications. Key capabilities include resolving schemas against their meta-schemas, handling remote schema references via configurable resolvers, and validating data against specific schema fragments. The library provides detailed validation error reporting through customizable formatters and supports custom format validators for string constraints. It also includes the official JSON Schema Test Suite as a submodule to ensure compliance.
(repo-wide) · high confidence
Behavioural changes
Comprehensive JSON Schema validation with structured error reporting
The validator module has been refactored to support a wide range of JSON Schema draft specifications (including Draft 4, 6, and 7) by extracting validation logic into dedicated modules for keywords such as \allOf\, \anyOf\, \oneOf\, \if/then/else\, \contains\, \const\, \dependencies\, \enum\, \not\, \propertyNames\, and \$ref\. Validation errors are now returned as structured data using specific error structs (e.g., \Error.AllOf\, \Error.Format\) rather than simple booleans, providing detailed context like invalid indices, missing properties, or expected values. The update also introduces built-in format validation for \date\, \date-time\, \email\, \hostname\, \ipv4\, \ipv6\, \uri\, and others, supports custom format validators, and improves numeric precision for \multipleOf\ using the \Decimal\ library.
_lib/ex\_json\schema/validator · high confidence
Migrate to Elixir 1.9+ config syntax and add test environment configuration
The application configuration has been updated to use the modern \import Config\ syntax instead of the deprecated \use Mix.Config\, and the \import\_config\ call now explicitly invokes \Mix.env()\ to load environment-specific files. Additionally, a new \config/test.exs\ file has been introduced to define test-specific settings for \ex\_json\_schema\, including a custom JSON decoder, a remote schema resolver using HTTPoison, and a custom format validator, alongside configuration for a sample Phoenix endpoint.
config · high confidence
Standardized JSON Schema validation error messages
The library now provides a dedicated error formatter module that generates human-readable, standardized messages for JSON Schema validation failures. This change introduces specific error descriptions for keywords such as \contentEncoding\, \contentMediaType\, \propertyNames\, and \const\, ensuring that users receive clear, contextual feedback (e.g., expected encoding or media type) rather than generic validation errors when data does not conform to the schema.
_lib/ex\_json\schema/validator/error · high confidence
Support for JSON Schema Drafts 4, 6, and 7 with improved reference handling
The library now includes bundled meta-schemas for JSON Schema Draft 4, Draft 6, and Draft 7, enabling validation against these specific specification versions. This change introduces a new \ExJsonSchema.Schema.Ref\ struct to represent references, allowing for more robust handling of location-independent identifiers and URI fragments. Additionally, a \ExJsonSchema.Schema.Root\ struct is introduced to manage schema state, including reference caching and custom format validators, replacing the previous internal representation.
_lib/ex\_json\schema/schema · high confidence
Validation errors now returned as structured objects with detailed paths
The library has shifted from returning simple boolean results to providing detailed, structured validation errors. The \ExJsonSchema.Validator\ now returns a list of \Error\ structs containing specific error types and absolute string paths (e.g., \\#\, \\#/properties/name\) instead of arrays or generic messages. This change enables applications to precisely identify which part of the data failed validation and allows for custom error formatting via the \error\_formatter\ option.
_lib/ex\_json\schema · high confidence
Test coverage
Added JSON Schema Test Suite coverage for Drafts 4, 6, and 7; Added test infrastructure for remote schema references; Added tests for schema resolution, validation, and error reporting.
Dependencies
Major dependency overhaul and project configuration update
The project has removed its core JSON parsing dependencies (Poison, exjsx, json) in favor of a zero-dependency approach for validation, while introducing new dependencies for development and testing including Decimal 3.0, Dialyxir, ExDoc, ExCoveralls, and a suite of test-only libraries (Jason, Plug.Cowboy, Phoenix, mix\_test\_watch). The Elixir requirement has been raised to version 1.6, and the project metadata has been updated with full Hex package details, documentation configuration, and dialyzer settings.
(dependencies) · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 69 → 69 (-0.1)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 99 → 97 (-1.6)
- Architecture 98 → 97 (-0.7)
- Maturity 54 → 54 (+0.0)
- Readiness 68 → 68 (+0.0)
- Security 97 → 97 (+0.0)
New (6)
- Edited copy of a member (17 corresponding lines) (lib/ex_json_schema/validator/any_of.ex)
- Edited copy of a member (3 corresponding lines) (lib/ex_json_schema/validator/items.ex)
- Edited copy of a member (4 corresponding lines) (lib/ex_json_schema/validator/dependencies.ex)
- Edited copy of a member (5 corresponding lines) (lib/ex_json_schema/validator/properties.ex)
- Edited copy of a member (7 corresponding lines) (lib/ex_json_schema/validator/max_items.ex)
- Edited copy of a member (7 corresponding lines) (lib/ex_json_schema/validator/min_items.ex)
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
jonasschmidt/ex_json_schema was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 15 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit d298fa91199482b72e8b00f24fbd80bfc94807fd — the exact code this score is about.
- Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-3c33c1882dc1.