Skip to content

Commit ffb95f1

Browse files
author
Andrei Neagu
committed
fixed broken validator
1 parent 941039c commit ffb95f1

File tree

1 file changed

+1
-1
lines changed
  • services/storage/src/simcore_service_storage

1 file changed

+1
-1
lines changed

services/storage/src/simcore_service_storage/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def convert_from_lower_case(cls, v: str) -> str:
191191
def when_directory_force_link_type_and_file_size(cls, data: Any) -> Any:
192192
assert isinstance(data, dict)
193193

194-
if bool(data.get("is_directory", False)) is True:
194+
if TypeAdapter(bool).validate_python(data.get("is_directory", "false")):
195195
# sets directory size by default to undefined
196196
if int(data.get("file_size", -1)) < 0:
197197
data["file_size"] = None

0 commit comments

Comments
 (0)