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
There is similar issue, #3009, but that is for swagger ui 2.x. This is for 3.3.2.
Q
A
Bug or feature request?
Bug
Which Swagger/OpenAPI version?
3.0.0
Which Swagger-UI version?
3.3.2
How did you install Swagger-UI?
Using dist folder to my localhost
Which browser & version?
Firefox and Chrome latest
Which operating system?
Windows 10 Pro
I suppose my yaml file is correct. I don't include responses node, because the problem is not there.
post:
tags:
- Authenticationsummary: Submit registration data of user to the serverrequestBody:
description: User to add into the system.content:
'multipart/form-data':
schema:
type: objectproperties:
'User[name]':
type: stringexample: Muhammad Fauzil Haqqi'User[phoneNumber]':
type: stringexample: 08123123123'User[email]':
type: stringexample: [email protected]'User[password]':
type: stringexample: secretpassword
Using Swagger UI 3.3.2, if i try to send the request using Try it Out button. I log the server request, and read the headers. The content type is text/plain;charset=UTF-8, so my form-data cannot be read by my server side code.
Just a note, if i change the openapi version to 3 instead of 3.0.0, the request body and the response example is not rendered.
Another problem is, the React component show error Could not render this component, see the console.. Seems like the request text could not be rendered.
The text was updated successfully, but these errors were encountered:
Noted for the form data parameter not yet supported.
For the last problem, i think it happens when i click "Execute" button. Seems like it is related with the support of form data. Because for application/json content type, it is no problem.
Uh oh!
There was an error while loading. Please reload this page.
There is similar issue, #3009, but that is for swagger ui 2.x. This is for 3.3.2.
I suppose my yaml file is correct. I don't include
responses
node, because the problem is not there.Using Swagger UI 3.3.2, if i try to send the request using
Try it Out
button. I log the server request, and read the headers. The content type istext/plain;charset=UTF-8
, so my form-data cannot be read by my server side code.Just a note, if i change the openapi version to
3
instead of3.0.0
, the request body and the response example is not rendered.Another problem is, the React component show error
Could not render this component, see the console.
. Seems like the request text could not be rendered.The text was updated successfully, but these errors were encountered: