restful: addition of `validate` function in RestfulPagination

Please trim spaces around docstring `"""Validate...`.