import uuid


def generate_topics_override(message_type, current_topics):
    """Generates the topics for the given message type as an array

    Keyword arguments:
    message_type -- the message type in use (kafka_equalities, kafka_audit, first_topic)
    current_topics -- if not a valid topic type, then this will be used instead
    """
    if message_type.lower() == "kafka_equalities":
        return [{"topic": "data.equality", "key": str(uuid.uuid4())}]
    elif message_type.lower() == "kafka_audit":
        return [{"topic": "data.businessAudit", "key": str(uuid.uuid4())}]
    elif message_type.lower() == "first_topic":
        return [current_topics[0]]

    return current_topics