prepare request parameters

def prepare_params(req: snug.Request) -> snug.Request:
    """prepare request parameters"""
    return req.replace(
        params={key: dump_param(val) for key, val in req.params.items()
                if val is not None})