Closed odesenfans closed 11 months ago
Problem: using create_post() with an object containing datetime, UUIDs and other types not serializable by the Python json module fails.
create_post()
json
Solution: as we already use Pydantic all over the place, use the Pydantic encoder as default for all the types not serializable by the json module.
Looks like a decent idea :+1:
Problem: using
create_post()
with an object containing datetime, UUIDs and other types not serializable by the Pythonjson
module fails.Solution: as we already use Pydantic all over the place, use the Pydantic encoder as default for all the types not serializable by the
json
module.