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
/testmultipart:
post:
summary: Send multipart request.requestBody:
content:
multipart/form-data:
schema:
properties:
# The property name 'file' will be used for all files.file:
type: arrayitems:
type: stringformat: binaryresponses:
'200':
description: The request has been sended.
This is done to avoid resurrecting old issues and bumping long threads with new, possibly unrelated content.
If you think you're experiencing something similar to what you've found here: please open a new issue, follow the template, and reference this issue in your report.
Demonstration API definition
Expected Behavior
I try to test a POST multipart/form-data request with swagger-UI and multiple files. I read the OpenAPI specification documentation with File Upload considerations : https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#considerations-for-file-uploads
I also give you a corresponding example of curl command:
I suppose that when I "Try it out" my request swagger UI must show me multiple "File Upload" widgets.
Current Behavior
Actually Swagger UI propose in request body the following example value model with application/json schema :
The text was updated successfully, but these errors were encountered: