def filter_type(findings, allowlist):
    """
    Filter list of findings to return only those with a type in the allowlist.

    **Parameters**

    ``findings``
        List of dictionary objects (JSON) for findings
    ``allowlist``
        List of strings matching severity categories to allow through filter
    """
    filtered_values = []
    allowlist = [type.lower() for type in allowlist]
    for finding in findings:
        if finding["finding_type"].lower() in allowlist:
            filtered_values.append(finding)
    return filtered_values