Skip to content

Parse exception for getNotifications #29

@sandberg75

Description

@sandberg75

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

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions