serialize_dt_field() — fastapi Function Reference
Architecture documentation for the serialize_dt_field() function in test_jsonable_encoder.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD e9196f64_5130_591a_2468_ec6a5432629b["serialize_dt_field()"] eb4cf655_092d_203b_58cb_614226bb52a0["ModelWithCustomEncoder"] e9196f64_5130_591a_2468_ec6a5432629b -->|defined in| eb4cf655_092d_203b_58cb_614226bb52a0 a3bb3705_7383_2a9b_2bd8_7b9eb6335743["test_encode_custom_json_encoders_model_pydanticv2()"] a3bb3705_7383_2a9b_2bd8_7b9eb6335743 -->|calls| e9196f64_5130_591a_2468_ec6a5432629b 78cf9f6d_f562_f455_e0de_8806b95a89f1["isoformat()"] e9196f64_5130_591a_2468_ec6a5432629b -->|calls| 78cf9f6d_f562_f455_e0de_8806b95a89f1 style e9196f64_5130_591a_2468_ec6a5432629b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_jsonable_encoder.py lines 147–148
def serialize_dt_field(self, dt):
return dt.replace(microsecond=0, tzinfo=timezone.utc).isoformat()
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does serialize_dt_field() do?
serialize_dt_field() is a function in the fastapi codebase, defined in tests/test_jsonable_encoder.py.
Where is serialize_dt_field() defined?
serialize_dt_field() is defined in tests/test_jsonable_encoder.py at line 147.
What does serialize_dt_field() call?
serialize_dt_field() calls 1 function(s): isoformat.
What calls serialize_dt_field()?
serialize_dt_field() is called by 1 function(s): test_encode_custom_json_encoders_model_pydanticv2.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free