powered by
Ensure that the limit is correct for the endpoint. Raise an error if not.
check_limit(limit, max)
limit, assuming no errors
limit
The limit to be added to the query
The maximum allowed for the given endpoint