-
Notifications
You must be signed in to change notification settings - Fork 756
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
TS Fixes: arrays of subobjects, emptyStringable fields #802
Conversation
This is correct at the API level, but in many of our client libraries we prevent users from passing |
40479ab
to
8b50d3b
Compare
8b50d3b
to
b5213c6
Compare
@ob-stripe - Good point. We don't actively prevent setting an empty string in node.js, but ultimately API Requests are urlencoded I think that's
|
The other possibility would be defining |
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.
Agree that null
is a better choice than ''
.
LGTM!
r? @ob-stripe
cc @jlomas-stripe @stripe/api-libraries
anyOf(X, enum([''])
) asX | null
instead ofX | ''
.Fixes Incorrect typings custom_fields when #794