def get_duplicated_sc_names(validated_data: dict):
    """
    Validates if all Stop Condition names are unique.
    :validated_data: dict. Dictionary for validation.
    :return: list of duplicates.
    """
    sc_names = []
    for sc in validated_data["StopCondition"]:
        sc_names.append(sc["Name"])
    duplicates = []
    if len(sc_names) > len(set(sc_names)):
        duplicates = set([x for x in sc_names if sc_names.count(x) > 1])
    return duplicates