Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix serialization of nested ListObjects #441

Merged
merged 1 commit into from
Jul 6, 2018
Merged

Fix serialization of nested ListObjects #441

merged 1 commit into from
Jul 6, 2018

Conversation

ob-stripe
Copy link
Contributor

@ob-stripe ob-stripe commented Jul 6, 2018

r? @brandur-stripe
cc @stripe/api-libraries @sazlin

Another attempt at fixing the serialization of ListObjects, this time for good hopefully 🤞

Before calling the JSON serializer, all StripeObjects are recursively converted into regular dicts, which should prevent any of our custom stuff from interfering with the serialization.

Fixes #440.

@brandur-stripe
Copy link
Contributor

This seems like an elegant solution that's hopefully pretty safe — LGTM.

@ob-stripe ob-stripe merged commit 3a525cc into master Jul 6, 2018
@ob-stripe ob-stripe deleted the ob-fix-440 branch July 6, 2018 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

stripe.Account.external_accounts still deserializes into StripeObject instead of ListObject
2 participants