- Dec 19, 2024
-
-
Hobbs, Alexandra (Contractor) authored
-
- Nov 25, 2024
-
-
Hobbs, Alexandra (Contractor) authored
-
Hobbs, Alexandra (Contractor) authored
-
- Nov 14, 2024
-
-
Hobbs, Alexandra (Contractor) authored
-
- Nov 13, 2024
-
-
Hobbs, Alexandra (Contractor) authored
-
Hobbs, Alexandra (Contractor) authored
-
- Nov 08, 2024
-
-
Hobbs, Alexandra (Contractor) authored
-
- Mar 06, 2024
-
-
Erin (Josh) Rigler authored
Pydantic v1's json module contain[s|ed] a dictionary called `ENCODERS_BY_TYPE` that was commonly used to overide default json encoders. Pydantic v2 is moving away from this to a "better" system. FastAPI attempted to stay compatible with both v1 and v2 by pulling ENCODERS_BY_TYPE into their own codebase, but this broke our custom type `UTCDateTime`, at least for anything using fastapi. We thought we fixed this with a recent MR, but it turns out all we did was fix the validator. We did not fix the encoder itself. So, validation steps would pass, but we continued to server malformed json for UTCDateTimes. This commit reverts to the earlier version of pydantic_utcdatetime.py, and adds a small kluge that modifies `ENCODERS_BY_TYPE` in both pydantic and fastapi.
-
- Feb 14, 2024
-
-
Wilbur, Spencer Franklin authored
Updated the fastapi package which required a few changes to the file pydantic_utcdatetime.py module. The module now contains a workaround to deal with the way pydantic manages the UTCDateTime string. This is a new issue that was caused by updating to fastapi version 0.109.2.
-
- Aug 17, 2021
-
-
Cain, Payton David authored
-
- Apr 06, 2020
-
-
Jeremy M Fee authored
-
Jeremy M Fee authored
-