Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use pydantic's JSON encoder for everything (#9)
This allows us to put pydantic models inside e.g. a TypedDict and have it serialize to JSON just fine. We could probably simplify the logic a lot by just using this on everything, but I think I'll leave major changes for the Pydantic v2 update.
- Loading branch information