Closed robmitchell1987 closed 2 months ago
Thanks for bringing this up- we'll work on a patch for this.
In the meantime, you can work around this by passing options={ USE_DICTIONARY_FOR_RESPONSE_DATA: True }
- this will give you a dictionary response and forego validation.
This has been fixed in v12 - closing this out.
I am getting a Pydantic error using
klaviyo.Reporting.query_campaign_values
on version11.0.1
of the SDK due to there not being alinks
node in the response which is required by the validator.Error below
{ "data": { "type": "campaign-values-report", "id": "", "attributes": { "results": [ { "groupings": { "send_channel": "email", "campaign_id": "" }, "statistics": { "clicks": 0.0, "opens": 2.0, "open_rate": 1.0, "delivered": 1.0 } } ] }, "relationships": { "campaigns": { "data": [ ... ] } } }, "links": { "self": "https://a.klaviyo.com/api/campaign-values-reports/", "next": null, "prev": null } }