From 0064218a61387931a8961258573d88b8c16911ec Mon Sep 17 00:00:00 2001 From: Solomon Negusse Date: Tue, 27 Aug 2024 19:54:15 +0300 Subject: [PATCH] pass through None in validation --- app/models/pydantic/metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/pydantic/metadata.py b/app/models/pydantic/metadata.py index 0c71b5451..f17d44b6d 100644 --- a/app/models/pydantic/metadata.py +++ b/app/models/pydantic/metadata.py @@ -177,7 +177,7 @@ class VersionMetadataWithParentResponse(Response): def _date_validator(date_str): - if isinstance(date_str, date): + if isinstance(date_str, date) or date_str is None: return date_str try: