Swagger 2.0 multipart/form-data defined as below:
consumes:
- multipart/form-data
produces:
- application/json
parameters:
- type: file
name: artifact
in: formData
required: true
- type: file
name: metadata
in: formData
And after converting, in OAS 3, it becomes:
requestBody:
content:
multipart/form-data:
schema:
required:
- artifact
properties:
artifact:
type: string
format: binary
metadata:
type: string
format: binary
Under schema section, missing type: object property. It should be:
requestBody:
content:
multipart/form-data:
schema:
type: object
required:
- artifact
properties:
artifact:
type: string
format: binary
metadata:
type: string
format: binary
Swagger 2.0 multipart/form-data defined as below:
consumes: - multipart/form-data produces: - application/json parameters: - type: file name: artifact in: formData required: true - type: file name: metadata in: formDataAnd after converting, in OAS 3, it becomes:
requestBody: content: multipart/form-data: schema: required: - artifact properties: artifact: type: string format: binary metadata: type: string format: binaryUnder
schemasection, missingtype: objectproperty. It should be:requestBody: content: multipart/form-data: schema: type: object required: - artifact properties: artifact: type: string format: binary metadata: type: string format: binary