Skip to content

Commit 6e3f209

Browse files
committed
fix(serialization): adjust custom_metadata type check for serialization
1 parent 09ae375 commit 6e3f209

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/imagekitio/lib/serialization_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def serialize_upload_options(upload_options: Dict[str, Any]) -> Dict[str, Any]:
3737
elif key == "extensions" and isinstance(value, list):
3838
# Extensions should be JSON stringified
3939
serialized[key] = json.dumps(value)
40-
elif key == "custom_metadata" and isinstance(value, dict) and not isinstance(value, (list, tuple)):
40+
elif key == "custom_metadata" and isinstance(value, dict):
4141
# Custom metadata should be JSON stringified
4242
serialized[key] = json.dumps(value)
4343
elif key == "transformation" and isinstance(value, dict):

0 commit comments

Comments
 (0)