Skip to content

fitToPage incorrect Gson mapping #5

@dimaloop

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions