You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I've just started using the xero-python SDK (v 6.3.0) to retrieve Invoices. There appears to be an issue in the client when serializing UUID fields
throws a ValueError `Can't serialize value type 'UUID' when attempting to serialize the model.
I've resolved this issue by patching the serializer based on this suggestion in Issue #93
@serialize_model.register(UUID)defserialize_uuid_model(model):
"""Serializes api model into an json serializable object. :param model: BaseModel instance to serialize :return: serialized object """returnmodel.hex```
The text was updated successfully, but these errors were encountered:
Hi. I've just started using the xero-python SDK (v 6.3.0) to retrieve Invoices. There appears to be an issue in the client when serializing UUID fields
This code:
throws a ValueError `Can't serialize value type 'UUID' when attempting to
serialize the model.
I've resolved this issue by patching the serializer based on this suggestion in Issue #93
The text was updated successfully, but these errors were encountered: