def validate_object(brain_or_object, data):
obj = get_object(brain_or_object)<EOL>if is_at_content(obj):<EOL><INDENT>return obj.validate(data=data)<EOL><DEDENT>return {}<EOL>
Validate the entire object

    :param brain_or_object: A single catalog brain or content object
    :type brain_or_object: ATContentType/DexterityContentType/CatalogBrain
    :param data: The sharing dictionary as returned from the API
    :type data: dict
    :returns: invalidity status
    :rtype: dict