Relative Content

Tag Archive for pythonjsonpython-requestspydanticpydantic-v2

Pydantic v2 vs requests POST JSON – ‘not serializable’ nightmares

I am writing a script to post data from an internal system to a third party web API. Our internal system uses data Models defined in Pydantic. I am trying to send data in one of these models to the API using requests.post but it can’t serialize some types and it’s driving me insane.