Skip to content

Commit 4533c28

Browse files
feat(internal): implement indices array format for query and form serialization
1 parent 5e9e6f3 commit 4533c28

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/imagekitio/_qs.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,10 @@ def _stringify_item(
101101
items.extend(self._stringify_item(key, item, opts))
102102
return items
103103
elif array_format == "indices":
104-
raise NotImplementedError("The array indices format is not supported yet")
104+
items = []
105+
for i, item in enumerate(value):
106+
items.extend(self._stringify_item(f"{key}[{i}]", item, opts))
107+
return items
105108
elif array_format == "brackets":
106109
items = []
107110
key = key + "[]"

0 commit comments

Comments
 (0)