-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Not able to execute request for multipart/form-data #6250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@vinaylondhe-highspot can you provide an OpenAPI definition to reproduce the issue? |
@hkosova So I can confirm that I am able to execute the request just fine when I have something like
But when I have something like the below definition (basically when you can send either of multipart/form-data or application/json content for the same endpoint), I can confirm that the Execute button does not work
And I want to use this version because of this bug fix #6223 |
And this is happening for the versions 3.29.0 and 3.30.0. |
@vinaylondhe-highspot Imo, it would be much better api design to have separate api endpoints for |
@tim-lai I agree that its a much better API design to have separate api endpoints. Unfortunately, I cannot do that right now since it will break our existing clients |
* When the media-type is changed, there is a new `onChangeMediaType` method to handle actions. * If target schema properties key/value pairs does NOT equals current schema properties, clear the requestBodyValue, try-it-out request/response and validation params. * If target schema properties key/value pairs DOES equals current schema properties, do not change or re-render schema properties * oas3Selector `validateShallowRequired` now also validates required keys against target media-type Fixes #6201, #6250, #6476
Q&A (please complete the following information)
Describe the bug you're encountering
When multipart/form-data is selected as the Content-Type and a file is selected to be uploaded, nothing happens after clicking on
Execute
. TheExecute
button does not work at all.To reproduce...
Steps to reproduce the behavior:
Expected behavior
The request should be made to the appropriate endpoint. Instead, the request is not made at all
The text was updated successfully, but these errors were encountered: