onecrayon / api.ashes.live

Backend API for a fan-developed deckbuilder and community website for the card game Ashes Reborn
ISC License
13 stars 3 forks source link

Bug: "Limit" parameters over 100 are resulting in a server error #88

Open onecrayon opened 1 year ago

onecrayon commented 1 year ago

E.g. this URL dies: https://api.ashes.live/v2/cards?limit=101

acherry commented 1 year ago

In case it helps, I notice that pagination.py sets the limit for PaginationOptions as settings.pagination_default_limit, gt=0, le=settings.pagination_max_limit and environment.py sets pagination_max_limit: int = 100