# ex_json_schema

> JSON Schema validator for Elixir, drafts 4, 6 and 7

Source: https://talira.ai/catalog/ex-json-schema-nrpexk7s
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / validation / json schema](https://talira.ai/categories/libraries/validation/json-schema), [languages / elixir](https://talira.ai/categories/languages/elixir)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Supports: [JSON Schema](https://talira.ai/standards/json-schema.md)[^1]
- Backed by: [Jonas Schmidt](https://talira.ai/orgs/jonas-schmidt.md)

ex_json_schema is a JSON Schema validator for Elixir that supports drafts 4, 6 and 7 and passes the official JSON Schema Test Suite. It resolves schemas once for reuse, can fetch remote schemas through a resolver function you register, validates against a fragment of a schema, and returns errors as message and path tuples, as raw error structs or through your own formatter. It supports draft 4's formats and lets you add custom formats.

## Links

- GitHub: https://github.com/jonasschmidt/ex_json_schema
- Docs: https://hexdocs.pm/ex_json_schema/

## Problems it solves

- validate JSON against a JSON Schema in Elixir
- get detailed JSON Schema validation errors with paths in Elixir
- check request payloads against a schema in a Phoenix app

## Features

- validates JSON Schema drafts 4, 6 and 7; passes the official test suite
- remote schema resolution through a resolver function you register
- validation against a fragment of a schema
- string, raw or custom error formatters
- draft 4 formats and custom formats

## Limitations

- Of draft 4's formats it doesn't support uri, whose requirements in the official test suite its maker calls confusing or broken.[^1]

## Trust

Overall: 0.32 out of 1.
Signals: maintenance 0.27, adoption 0.52, momentum 0.18, community 0.58, backing 0.30, extensibility 0.00.

- 393 GitHub stars
- 28 contributors
- backed by Jonas Schmidt

Warnings:

- last commit 4 months ago

## Alternatives

- [check-jsonschema](https://talira.ai/catalog/check-jsonschema-zskp1vjb.md): JSON Schema validation CLI and pre-commit hooks

## Sources

[^1]: https://github.com/jonasschmidt/ex_json_schema/blob/master/README.md (checked 28 Nov 2026)
[^2]: https://github.com/jonasschmidt/ex_json_schema/blob/master/LICENSE (checked 28 Nov 2026)
