Closed phayes closed 5 years ago
It looks like the error is here:
} else if param_name.contains("count")
|| param_name.contains("size")
|| param_name.contains("quantity")
{
"u64"
} else {
"i64"
};
The error happens on the field account_balance
, which contains the substring count
.
A fix is here: https://github.com/wyyerd/stripe-rs/pull/81
PR merged.
When a customer has a negative value in their
balance
field, fetching the customer results in a parse-error. This is becausebalance
isu64
but it should bei64
.I've created a PR against the stripe openapi specification to fix this: https://github.com/stripe/openapi/pull/50