-
Notifications
You must be signed in to change notification settings - Fork 367
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
Arrays in webhooks previous attributes parsed as Object[] #605
Comments
Hi @Flo354, thanks for the report! Stripe's Java library uses a custom deserializer for the I agree that @brandur-stripe @remi-stripe Any strong feels around this? |
I agree that List would make a lot more sense and I would tag as Future for when we do the next major revision. |
Thanks! I'll wait for the next major release. |
Quick update: this didn't make it into the newly released major version 8.0.0, but it's still on our roadmap and will be fixed in a future major version. |
Fixed in stripe-java 9.0.0. |
Hi,
I am using stripe-java version 7.1.0 and I am currently experiencing something weird with Webhooks.
When getting
event.getData().getPreviousAttributes()
, I obtain aMap<String, Object>
which is fine.Within this map, if I am getting the field
verification
, is it also aMap<String, Object>
.But why an array, like
verification -> fields_needed
is anObject[]
instead of aList<Object>
.Actually, I am asking this question to myself, because with my JSON library (Jackson JSON), When I am using this code:
When I am recovering
verification -> fields_needed
, I am getting anArrayList<Object>
. And I find this more natural.The text was updated successfully, but these errors were encountered: