I am trying to download the zip file from the api but it giving me error like "Unknown Type: file"
/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
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.
How to exclude such route from swagger validation in this way?
schema: any works :)