You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Swagger-Client usage:
Default configuration, just use a definition containing multipart/mixed
Describe the bug you're encountering
Multipart/mixed request is broken. When used, the request body is JSON and not multipart. It was working prior to version 3.10.6. All later versions including the latest have the same behavior.
To reproduce...
Steps to reproduce the behavior:
Compose a yaml using OpenAPI 3.0 and use multipart/mixed content type. Use two parts - one JSON, and the other string/binary.
Add the yaml in swagger url
Fill the JSON/file parts of the request and execute
Expected behavior
The request body should be multipart.
Current behavior
The request body is JSON and the request fails.
Screenshots
Additional context or thoughts
I think the issue is caused by this commit: 651e857
The condition for multipart/ is changed to 'multipart/form-data' which results in non-working multipart/mixed.
The text was updated successfully, but these errors were encountered:
This would just create a request with content type of multipart/mixed; boundary=BOUNDARY, but the proper MIME boundaries were never generated and made the request invalid multipart/mixed requets.
@plamen-dzhorev please correct me if I'm wrong on these asumptions.
Q&A (please complete the following information)
Content & configuration
Swagger/OpenAPI definition:
Swagger-Client usage:
Default configuration, just use a definition containing multipart/mixed
Describe the bug you're encountering
Multipart/mixed request is broken. When used, the request body is JSON and not multipart. It was working prior to version 3.10.6. All later versions including the latest have the same behavior.
To reproduce...
Steps to reproduce the behavior:
Expected behavior
The request body should be multipart.
Current behavior
The request body is JSON and the request fails.
Screenshots
Additional context or thoughts
I think the issue is caused by this commit: 651e857
The condition for multipart/ is changed to 'multipart/form-data' which results in non-working multipart/mixed.
The text was updated successfully, but these errors were encountered: