Docs for API call get leaderboard
(https://dev.playlyfe.com/docs/api/v2/runtime.html#GETLeaderboardGetALeaderboard) says:
?= limit
Limit the number of players returned in the response. -1 denotes no limit, all players are returned.
Defaults to10
But when I do call with limit=-1
/runtime/leaderboards/developer_leaderboard?cycle=alltime&limit=-1
I got 400 error:
{
"error": "validation_exception",
"error_description": "Invalid request",
"data": {
"valid": false,
"errors": [
{
"code": "INVALID_FORMAT",
"path": "/query/limit",
"instance": "-1",
"validator": "format",
"message": "\"-1\" should match format positiveLongInteger",
"validator_value": "positiveLongInteger",
"relative_schema_path": "/format",
"absolute_schema_path": "https://dev.playlyfe.com/schemas/v2/runtime/leaderboards/:leaderboard_definition_id/get.json#/properties/query/properties/limit/format"
}
],
"passed": 7
}
}