Adapters
Compare validation library adapters supported by xschema
Adapters
Adapters convert JSON Schema into native validation code for your chosen library. Each adapter is a standalone CLI that receives pre-processed schemas from xschema and outputs idiomatic code.
See What is XSchema for the full architecture and Adapter Protocol for the technical specification.
TypeScript Adapters
| Adapter | Compliance | Peer Dependency |
|---|---|---|
| @xschemadev/zod | 100% | zod ^3.0.0 |
| @xschemadev/arktype | 100% | arktype ^2.0.0 |
| @xschemadev/effect | 100% | effect ^3.0.0 |
| @xschemadev/valibot | 98.9% | valibot ^0.42.0 |
Python Adapters
| Adapter | Compliance | Peer Dependency |
|---|---|---|
| @xschemadev/pydantic | Coming soon | pydantic ^2.0.0 |
About Compliance
Compliance percentages are calculated against the official JSON Schema Test Suite, excluding features that cannot be statically compiled. Learn more about compliance testing.
Building Custom Adapters
Want to add support for another validation library? See the Building Adapters guide.