我的 swagger REST API 中有一个 get 调用,需要返回一个 pdf 文件。没有明确的示例/文档说明如何在不导致语法错误的情况下执行此操作。
responses:
200:
description: Returns PDF
schema: [application/pdf]
和
responses:
200:
description: Returns PDF
schema:
type: file
和
responses:
200:
description: Returns PDF
schema:
type: [application/pdf]
都失败了。这甚至可能吗?