-
Notifications
You must be signed in to change notification settings - Fork 26
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
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'
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working