Skip to content

fitToPage incorrect Gson mapping #5

Description

@dimaloop

in class com.printnode.api.Options there is a private Boolean fitToPage; which maps by default to "fitToPage" json field, not "fit_to_page" as PrintNode api expected

According to the Json docs i found that you need use annotation like:
@SerializedName("fit_to_page") instead plain field declaration

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions