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 exception when object key is missing in polymorphic resource deserializer #1453

Merged
merged 1 commit into from
Jan 3, 2019

Conversation

ob-stripe
Copy link
Contributor

r? @remi-stripe
cc @stripe/api-libraries @da1rren

Gracefully handle the case where the object key is missing in the JSON for a polymorphic resource, by returning null instead of raising an exception.

Fixes #1452.

@ob-stripe ob-stripe self-assigned this Jan 3, 2019
@ob-stripe ob-stripe merged commit d204d2c into master Jan 3, 2019
@ob-stripe ob-stripe deleted the ob-fix-1452 branch January 3, 2019 16:21
@ob-stripe
Copy link
Contributor Author

Released as 21.8.1.

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.

2 participants