Skip to main content
Pydantic Docs

Search documentation

Type to search this documentation.

Documentation

Pydantic uses MkDocs for documentation, together with mkdocstrings. As such, you can make use of Pydantic's Sphinx object inventory to cross-reference the Pydantic API documentation.

In your Sphinx configuration, add the following to the intersphinx extension configuration:

Python
intersphinx_mapping = {
    'pydantic': ('https://pydantic.dev/docs/validation/latest', None),  # (1)!
}
  1. You can also use dev instead of latest to target the latest documentation build, up to date with the main branch.

In your MkDocs configuration, add the following import to your mkdocstrings plugin configuration:

YAML
plugins:
- mkdocstrings:
    handlers:
      python:
        import:
        - https://pydantic.dev/docs/validation/latest/objects.inv  # (1)!
  1. You can also use dev instead of latest to target the latest documentation build, up to date with the main branch.
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu