_validate() — fastapi Function Reference
Architecture documentation for the _validate() function in models.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 20ea4a11_aece_5926_4bf5_5da699da083d["_validate()"] 485b4af3_9c75_263f_4293_de54b29e9b3a["EmailStr"] 20ea4a11_aece_5926_4bf5_5da699da083d -->|defined in| 485b4af3_9c75_263f_4293_de54b29e9b3a 3a13db06_7756_8b88_8330_0d14f9140935["EmailStr()"] 3a13db06_7756_8b88_8330_0d14f9140935 -->|calls| 20ea4a11_aece_5926_4bf5_5da699da083d style 20ea4a11_aece_5926_4bf5_5da699da083d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
fastapi/openapi/models.py lines 37–42
def _validate(cls, __input_value: Any, _: Any) -> str:
logger.warning(
"email-validator not installed, email fields will be treated as str.\n"
"To install, run: pip install email-validator"
)
return str(__input_value)
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does _validate() do?
_validate() is a function in the fastapi codebase, defined in fastapi/openapi/models.py.
Where is _validate() defined?
_validate() is defined in fastapi/openapi/models.py at line 37.
What calls _validate()?
_validate() is called by 1 function(s): EmailStr.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free