From b1bfb66ab4715aea53457783c090013b79a58114 Mon Sep 17 00:00:00 2001 From: jtyoung84 <104453205+jtyoung84@users.noreply.github.com> Date: Sat, 3 Feb 2024 15:17:55 -0800 Subject: [PATCH] fix: allow users to add extra configs --- src/aind_data_transfer_service/configs/job_configs.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/aind_data_transfer_service/configs/job_configs.py b/src/aind_data_transfer_service/configs/job_configs.py index 205d8b8..881267a 100644 --- a/src/aind_data_transfer_service/configs/job_configs.py +++ b/src/aind_data_transfer_service/configs/job_configs.py @@ -14,7 +14,7 @@ PrivateAttr, SecretStr, ValidationInfo, - field_validator, + field_validator, ConfigDict, ) from pydantic_settings import BaseSettings @@ -104,6 +104,9 @@ def get_compress_source_default( class BasicUploadJobConfigs(BaseSettings): """Configuration for the basic upload job""" + # Allow users to pass in extra fields + model_config = ConfigDict(extra='allow',) + # Need some way to extract abbreviations. Maybe a public method can be # added to the Platform class _PLATFORM_MAP: ClassVar = {