Commit 11a7720
committed
fix: use indices:dots arrayFmt in MarshalRoot for correct multipart array encoding
Changes arrayFmt from "comma" to "indices:dots" in MarshalRoot so that
arrays of objects produce indexed field names (e.g. files.0.dest_path)
instead of ambiguous repeated names (e.g. files.dest_path).
This only affects the two MarshalMultipart callers that have array
fields (BrowserFUploadParams, BrowserLoadExtensionsParams). The four
callers without array fields are unaffected since the array encoder
is never invoked. The objKeyEncoder also behaves identically for both
formats (both use dot notation for nested objects).
Made-with: Cursor1 parent 09185d3 commit 11a7720
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
0 commit comments