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

Parse exception for getNotifications #29

Open
sandberg75 opened this issue Jun 3, 2023 · 1 comment
Open

Parse exception for getNotifications #29

sandberg75 opened this issue Jun 3, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@sandberg75
Copy link

Hello, when the response contains a "buttons" object the json string can not be parsed.
https://github.com/OneSignal/onesignal-java-api/blob/main/docs/DefaultApi.md#getNotifications

Example response:
"buttons": "[{"id":"declineFriend","text":"Decline"},{"id":"acceptFriend","text":"Accept"}]",

Error:
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at path $.buttons

Tested in version 'org.openapitools:onesignal-java-client:1.2.1'

@emawby emawby added the bug Something isn't working label Jun 12, 2023
@emawby
Copy link

emawby commented Jun 12, 2023

@sandberg75 Thank you for reaching out we will investigate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants