-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Labels
Description
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:
rest/rest-core/src/Rest/Driver/Routing.hs
Line 307 in edc00f9
| return (List f (min c (length xs)) (take c xs)) |