Skip to content

Commit 368083f

Browse files
committed
Document main multipart array change
1 parent af9c9fa commit 368083f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
default: major
3+
---
4+
5+
# Change default multipart array serialization
6+
7+
Previously, any arrays of values in a `multipart/form-data` body would be serialized as an `application/json` part.
8+
This matches the default behavior specified by OpenAPI and supports arrays of files (`binary` format strings).
9+
However, because this generator doesn't yet support specifying `encoding` per property, this may result in
10+
now-incorrect code when the encoding _was_ explicitly set to `application/json` for arrays of scalar values.
11+
12+
PR #938 fixes #692. Thanks @micha91 for the fix, @ratgen and @FabianSchurig for testing, and @davidlizeng for the original report... many years ago 😅.

0 commit comments

Comments
 (0)