From 17467e086b3ddbb498379cd137dae3a497783dd3 Mon Sep 17 00:00:00 2001 From: Ovsyannikov Dmitrii Date: Mon, 4 Mar 2024 11:41:54 +0100 Subject: [PATCH] fix: add load default to US NativeTypeSchema (#359) --- lib/dl_core/dl_core/us_manager/storage_schemas/base_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dl_core/dl_core/us_manager/storage_schemas/base_types.py b/lib/dl_core/dl_core/us_manager/storage_schemas/base_types.py index 873eebefd..4cdfd9401 100644 --- a/lib/dl_core/dl_core/us_manager/storage_schemas/base_types.py +++ b/lib/dl_core/dl_core/us_manager/storage_schemas/base_types.py @@ -20,7 +20,7 @@ class NativeTypeSchema(Schema): """(currently used for uploads / ProviderConnection)""" - conn_type = DynamicEnumField(ConnectionType, by_value=True) + conn_type = DynamicEnumField(ConnectionType, by_value=True, load_default=ConnectionType.unknown) name = fields.String() @post_load(pass_many=False)