MultiPartBody: Impossible to add multiple Body Parts with the same name #6261
Labels
Csharp
Pull requests that update .net code
status:waiting-for-triage
An issue that is yet to be reviewed or assigned
type:bug
A broken experience
What are you generating using Kiota, clients or plugins?
API Client/SDK
In what context or format are you using Kiota?
Nuget tool
Client library/SDK language
Csharp
Describe the bug
I am using an existing API with the Atteached API Spec.
It expects a multipart body with an array of files:
e.g swagger Editor lets you paste multiple files:
However the KIOTA Multipart body uses a dictionary based on the Part name, so this does not allow you to create such a body:
This creates such a request:
RequestRaw:
However I want to create such an request:
Expected behavior
Be able to create a multipart body with multiple elements with the same name.
How to reproduce
Generate client with attached API spec.
Try to add multiple files
Open API description file
Kiota Version
1.23.0
Latest Kiota version known to work for scenario above?(Not required)
No response
Known Workarounds
Configuration
OS: Windows 10
Architecture x64
.Net 9
Debug output
Click to expand log
```The text was updated successfully, but these errors were encountered: