from typing import List


def get_param_with_name(parameters: List[dict], name: str) -> dict:
    """Get the parameter that has the given name."""
    matched_params = (p for p in parameters if p["name"] == name)
    return next(matched_params)