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
Describe the bug
When you make a multipart request with a file and another field of JSON type, the generated code snippet to run this request with cURL is wrong. Omits the type for the field with JSON type.
To Reproduce
Steps to reproduce the behavior:
Create a request with body of type form-data
Add a field of type file with content type multipart/form-data and a field of type text with content type application/json.
Go to Code functionality and generate code for cURL.
See the error. The generated code does not work, but postman request do.
Expected behavior
The generated code sniped should be:
Hello, unless I am confused about this changes I think the problem is not solved. cURL codegens keep ignoring content-type in order to generate the snippets.
Describe the bug
When you make a multipart request with a
file
and another field of JSON type, the generated code snippet to run this request with cURL is wrong. Omits the type for the field with JSON type.To Reproduce
Steps to reproduce the behavior:
form-data
file
with content typemultipart/form-data
and a field of type text with content typeapplication/json
.Code
functionality and generate code forcURL
.Expected behavior
The generated code sniped should be:
Screenshots
Image for step 2:
Image for step 3:
App information:
Additional context
This problem exist in almost all libraries that generate content body for
multipart/form-data
.The text was updated successfully, but these errors were encountered: