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 handling of Expand* properties in list requests #1355

Merged
merged 1 commit into from
Oct 25, 2018
Merged

Conversation

ob-stripe
Copy link
Contributor

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

Fix handling of Expand* properties in list requests. After #1308, we no longer passed the isListMethod value to ApplyAllParameters, which caused the data. prefix to not be prepended in list requests.

Fixes #1351.

@ob-stripe
Copy link
Contributor Author

@remi-stripe I added a test by setting ExpandDefaultSource to true in the tests for the customer list methods. If the library fails to add the data. prefix, stripe-mock would return an error and the test would fail. It's not ideal, but better than nothing.

Copy link
Contributor

@remi-stripe remi-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks for the extra test. I know it's not perfect and I think we should remove those properties.

@ob-stripe ob-stripe self-assigned this Oct 25, 2018
@ob-stripe ob-stripe merged commit 7fa2805 into master Oct 25, 2018
@ob-stripe ob-stripe deleted the ob-fix-1351 branch October 25, 2018 20:46
@ob-stripe
Copy link
Contributor Author

Released as 20.2.0.

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.

Expand product property when listing plans
2 participants