def array_value(value):
    """Get the array values based on the json schema structure.

    :param value: Value to get 'value' from.
    :type value: dict
    :return: Dictionary which is parsable by 'generate_array'.
    :rtype: dict
    """
    if value.get("items").get("type") == "object":
        value = value.get("items").get("properties")
    elif value.get("items").get("type") == "string":
        value = {"type": {"type": "string"}}
    return value