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

More idiomatic types #1018

Merged
merged 3 commits into from
Sep 25, 2020
Merged

More idiomatic types #1018

merged 3 commits into from
Sep 25, 2020

Conversation

richardm-stripe
Copy link
Contributor

@richardm-stripe richardm-stripe commented Sep 25, 2020

Changes `FileLinkUpdateParams.expires_at^ to be "nullable" rather than "emptyStringable".

stripe-node converts nulls to empty strings before sending over the wire (urlencoded has no concept of 'null'), and using null is a more idiomatic way of "unsetting" a property so our convention for these type bindings is to provide null instead of empty string, but up till now our codegen infrastructure wasn't property handling this case before since it got confused by the presence of "now".

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

@richardm-stripe richardm-stripe changed the title [codegen] Update API Resources More idiomatic types Sep 25, 2020
@richardm-stripe
Copy link
Contributor Author

Not sure why travis is misbehaving but this change is innocuous and yarn test-typescript, yarn lint and yarn test pass locally.

@ctrudeau-stripe
Copy link
Contributor

Is it possible to kick travis to retry?

@richardm-stripe
Copy link
Contributor Author

richardm-stripe commented Sep 25, 2020

I've tried twice, no luck. Pretty sure I've seen this sort of error before "remote connection hung up" and its been transient.

Copy link
Contributor

@ctrudeau-stripe ctrudeau-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

@richardm-stripe richardm-stripe merged commit 7608356 into master Sep 25, 2020
@richardm-stripe richardm-stripe deleted the richardm/codegen-c4ce6f6 branch September 25, 2020 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants