Skip to content

Sort is not serializable to JSON #2425

@ghahramani

Description

@ghahramani

Hey guys,

I am trying to transfer Pageable over RSocket and it seems Sort implementation is not encodable, I mean you cannot find the direction or the orders as the orders but without getter which means, when you serialize it, there will be only useless properties in the JSON like:

unsorted: Boolean
sorted: Boolean
empty: Boolean

As you can see there is no information on what field and in which direction is sorted.

My proposal is to add a getter for private final List<Order> orders; field so when it converts to JSON, you will have information about the sorting

Metadata

Metadata

Assignees

No one assigned

    Labels

    has: design-decisionAn issue that contains a design decision about its topicstatus: declinedA suggestion or change that we don't feel we should currently apply

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions