-
Notifications
You must be signed in to change notification settings - Fork 552
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
Formatting changes from codegen #790
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM minus one comment. Will ask @brandur-stripe to take a look too just in case.
ptal @brandur-stripe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few comments, but looks mostly good to me as well!
ptal @rattrayalex-stripe
Okay, updated to incorporate feedback, and to move resources into their own dir |
oops, forgot to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Alex! LGTM.
@brandonl-stripe @rattrayalex-stripe There seems to have been a pretty important change in this PR in ea736eb. Previously when calling any of the methods that used If this change in behaviour is intentional, it might be worth it to add it retroactively to the changelog, since it can easily introduce subtle bugs in people's integrations if they're not handling the return values of those methods and are instead expecting the instance to be mutated with the result of the API operation (which is a reasonable expectation IMO). |
Thank you very much for reporting @AnotherJoSmith – that was not an intentional change! Thanks very much for reporting. I'll sync with the team on where to go from here. |
Alright, #806 should resolve this. I have some work towards a nicer / longer fix on another branch. Feedback welcome there! |
@AnotherJoSmith Sorry for the delayed release – the fix is out in 4.21.2. |
Thanks Alex! |
I don't think this will be quiiite the last PR of this nature, but this should be the main chunk of work and should probably be reviewed by itself.
Primary categories of changes here:
object_classes
map andresources
requires out into their own files, so they can be more easily codegen'd (though I have not yet implemented this).initialize_from
toUtil.convert_to_stripe_object
in most cases – I think this was something you recommended a while agor? @ob-stripe