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

Ensure all properties are on resources #1311

Merged
merged 4 commits into from
Oct 1, 2018

Conversation

remi-stripe
Copy link
Contributor

Did a pass using the OpenAPI spec + the Docs to ensure that all resources have the right list of properties. This meant adding multiple type-specific classes for Sources too.
Also renamed a few properties to match the API better such as ExpirationMonth => ExpMonth.

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

@ob-stripe ob-stripe changed the base branch from master to integration-next-major-version October 1, 2018 15:13
@ob-stripe
Copy link
Contributor

Looks much better!

I wonder if we could write a wholesome test to ensure that fields are declared in alphabetical order (though probably difficult with Internal stuff) / field names must match the JsonProperty declaration...

@remi-stripe
Copy link
Contributor Author

Yeah I think lately I've rushed too many PRs and did not pay enough attention to the fields name and I also made a few mistakes so I'm going to start being more thorough.

@remi-stripe remi-stripe merged commit 66502ee into integration-next-major-version Oct 1, 2018
@remi-stripe remi-stripe deleted the remi-rename-properties branch October 1, 2018 15:45
@ob-stripe ob-stripe mentioned this pull request Oct 1, 2018
32 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants