def validate_mappings_object_format(mappings: Dict) -> None:
    """Validate the format of the mappings object
    Args: mappings: the mappings object
    Raises InvalidArgError if the object is badly formatted, and this should terminate the add_document process
    """
    try:
        jsonschema.validate(instance=mappings, schema=mappings_schema)
        for field_name, configuration in mappings.items():
            if configuration["type"] == enums.MappingsObjectType.multimodal_combination:
                _validate_multimodal_combination_field_name(field_name)
                _validate_multimodal_combination_configuration_format(configuration)
            elif configuration["type"] == enums.MappingsObjectType.custom_vector:
                # Add any other custom_vector field name validations if needed.
                _validate_custom_vector_configuration_format(configuration)

    except jsonschema.ValidationError as e:
        raise errors.InvalidArgError(
            f"Error validating mappings object. Reason: {str(e)}. "
            f"Read about the mappings object here: {marqo_docs.mappings()}"
        )
Validate the format of the mappings object
    Args: mappings: the mappings object
    Raises InvalidArgError if the object is badly formatted, and this should terminate the add_document process
    
src/marqo/core/unstructured_vespa_index/unstructured_validation.py