Skip to content

Installation

Pydantic JSON Schema is available on PyPI as pydantic-jsonschema, so installation is as simple as:

uv add pydantic-jsonschema
pip install pydantic-jsonschema

(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:

uv add 'pydantic-extra-types[all]'
pip install 'pydantic-extra-types[all]'

See Formats for supported formats and usage examples.

Install from repository

If you prefer to install directly from a repository checkout:

uv add 'git+https://github.com/Danipulok/pydantic-jsonschema@main'
pip install 'git+https://github.com/Danipulok/pydantic-jsonschema@main'

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 format values
  • Examples - Run complete examples