get_blog_entries limit not working correctly
when I set limit under the number of posts everything is fine:
curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_blog_entries", "params":["hiveio",0,1], "id":1}' https://api.openhive.network
but when I set limit above user post count, I get error:
curl -s --data '{"jsonrpc":"2.0", "method":"condenser_api.get_blog_entries", "params":["hiveio",0,30], "id":1}' https://api.openhive.network
{
"jsonrpc": "2.0",
"error": {
"code": -32602,
"message": "Invalid parameters",
"data": "start_index and limit combination is invalid (19, 30)"
},
"id": 1
}
expected result: when limit is above user posts count, API should return all user posts
this issue happens to other paginated data like get_blog, it should be a quick fix, and it helps to do better tests