/task:
post:
tags:
- app
summary: create task
operationId: createTask
description: |
todo
responses:
'200':
description: OK
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
offerNumber: # metadata part
description: 'offernumber which has been created upfront'
type: string
example: '20180042'
trayImages: # image part
type: array
items:
type: string
format: base64
required:
- offerNumber
- trayImages
encoding:
trayImages:
contentType: image/png, image/jpeg
required: true
When display this on swaggerhub.com, it shows correctly:
When showing the same YAML in VScode with latest Swagger Viewer, it looks like this:
the part with the requestbody and the multipart file upload is totally missing.
When I click on try-it-out it's getting worse. On Swaggerhib I can add multiple files to the request.
A few months ago, I had the same issue on swaggerhub. Now they have fixed it.
I have the following OAS3 snippet in my YAML:
When display this on swaggerhub.com, it shows correctly:
When showing the same YAML in VScode with latest Swagger Viewer, it looks like this:
the part with the requestbody and the multipart file upload is totally missing. When I click on try-it-out it's getting worse. On Swaggerhib I can add multiple files to the request.
A few months ago, I had the same issue on swaggerhub. Now they have fixed it.
Can you please fix this as well?