Skip to content

Commit

Permalink
pass through None in validation
Browse files Browse the repository at this point in the history
  • Loading branch information
solomon-negusse committed Aug 27, 2024
1 parent 895e27d commit 0064218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/pydantic/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0064218

Please sign in to comment.