swagger2
swagger2 copied to clipboard
Unknown type: file
When using file as a parameter like:
/**
* @swagger
* /pakcage:
* post:
* summary: Upload package
* operationId: "upload"
* tags:
* - Bundles
* parameters:
* - name: file
* in: formData
* description: the package
* required: true
* type: file
* consumes:
* - "multipart/form-data"
* produces:
* - "application/json"
* responses:
* 200:
* description: the newly created package
* schema:
* $ref: "#/definitions/Package"
* 500:
* /
I receive the following message: Unknown type: file
. Looking at the is-my-json-valid
plugin it doesn't support this type so thus the failure.
We should definitely support this, PRs welcome :)
+1 definitely need it
This is absolutely desired feature.
+1
+1
I got the same error today, I cannot use the type "file"
I cannot use the type "file"