swagger2 icon indicating copy to clipboard operation
swagger2 copied to clipboard

I am trying to download the zip file from the api but it giving me error like "Unknown Type: file"

Open smudliyar opened this issue 7 years ago • 3 comments

/report_download: get: description: Report download operationId: report_download produces: - application/zip parameters:
- name: report_id in: query description: report_id is a alphanumeric string to identify the unique report. required: true type: string tags: - API responses: '200': description: report download schema: type: file

note:- I am able to download zip if i have called the same api from browser

smudliyar avatar Jun 05 '18 16:06 smudliyar

swagger2 doesn't currently support binary files/attachments. I'm not sure it really provides any value in this situation since it can't really validate anything. But PRs welcome if you want to address this.

carlansley avatar Jun 05 '18 16:06 carlansley

How to exclude such route from swagger validation in this way?

Skryabind avatar Jan 26 '19 12:01 Skryabind

schema: any works :)

Skryabind avatar Jan 26 '19 12:01 Skryabind