Installation¶
Pydantic JSON Schema is available on PyPI as
pydantic-jsonschema, so installation is as
simple as:
(Requires Python 3.12+)
This installs the pydantic_jsonschema package with pydantic as the only core dependency.
Third-party validator libraries¶
All built-in format validators work with zero extra dependencies.
For domain-specific formats such as payment cards, phone numbers, colors, country codes, and MAC addresses, install
pydantic-extra-types directly:
See Formats for supported formats and usage examples.
Install from repository¶
If you prefer to install directly from a repository checkout:
For local development, use the contributing guide instead. It is the source of
truth for development dependencies, just recipes, documentation checks, and PR workflow.
Next Steps¶
- Schema - Schema models, fields, and serialization
- Converters - Create Pydantic models from JSON Schema
- Formats - Add validation for JSON Schema
formatvalues - Examples - Run complete examples