Skip to content

Remove hard-limit on collection size #119

@Philonous

Description

@Philonous

List Handlers using the default Range parameter have a build in upper limit of 1000 items returned. I've tried working around it with genHandler and a custom parameter, but it seems that rest-core enforces a hard-limit of 1000 on items returned and will clip the list if it is longer. This limit seems arbitrary and makes it harder to retrieve large collections wholesale when no pagination is needed (e.g. for statistical analysis).

I suggest either removing the list clipping behaviour or restricting it to cases where an explicit upper limit is given.

The offending code seems to be here:

return (List f (min c (length xs)) (take c xs))

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions