[Bug]: Array parameter in multipart/form-data
does not explode when it's part of a complex object
#3169
Labels
multipart/form-data
does not explode when it's part of a complex object
#3169
Describe the bug
When the request body is
multipart/form-data
, and it contains an array parameter which is part of a complex object, the array parameter does not explode, but instead the value is sent as a comma-separated list.Expected behavior
An array parameter should be sent as multiple form fields having the same name even when it is not a direct parameter of an operation but included as part of a complex object.
Actual behavior
Value of the array parameter is sent as a comma-separated list.
Steps to reproduce
#30
inProgram.cs
:/WeatherForecast/post
#30
inProgram.cs
to see the expected behaviourException(s) (if any)
No response
Swashbuckle.AspNetCore version
7
.NET Version
9
Anything else?
No response
The text was updated successfully, but these errors were encountered: