Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix schema for timedelta as number, instead of str #325
Currently, the generated schema for
But by default, Pydantic will convert it to a
(Bug created by me in the JSON Schema compatibility PR).
This PR fixes that and makes the schema for
Related issue number
I didn't create one.
pydantic cares about performance, if there's any risk performance changed on this PR,
@@ Coverage Diff @@ ## master #325 +/- ## ===================================== Coverage 100% 100% ===================================== Files 13 13 Lines 1771 1771 Branches 344 344 ===================================== Hits 1771 1771