Home / Function/ __get_pydantic_json_schema__() — fastapi Function Reference

__get_pydantic_json_schema__() — fastapi Function Reference

Architecture documentation for the __get_pydantic_json_schema__() function in models.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  9f33e086_0452_f4ea_6ce0_aeca33dce3a9["__get_pydantic_json_schema__()"]
  485b4af3_9c75_263f_4293_de54b29e9b3a["EmailStr"]
  9f33e086_0452_f4ea_6ce0_aeca33dce3a9 -->|defined in| 485b4af3_9c75_263f_4293_de54b29e9b3a
  style 9f33e086_0452_f4ea_6ce0_aeca33dce3a9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

fastapi/openapi/models.py lines 45–48

        def __get_pydantic_json_schema__(
            cls, core_schema: Mapping[str, Any], handler: GetJsonSchemaHandler
        ) -> dict[str, Any]:
            return {"type": "string", "format": "email"}

Domain

Subdomains

Frequently Asked Questions

What does __get_pydantic_json_schema__() do?
__get_pydantic_json_schema__() is a function in the fastapi codebase, defined in fastapi/openapi/models.py.
Where is __get_pydantic_json_schema__() defined?
__get_pydantic_json_schema__() is defined in fastapi/openapi/models.py at line 45.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free