I have a get call in my swagger REST API that needs to return a pdf file. There is no clear example / documentation on how to do this without causing a syntax error.
responses:
200:
description: Returns PDF
schema: [application/pdf]
and
responses:
200:
description: Returns PDF
schema:
type: file
and
responses:
200:
description: Returns PDF
schema:
type: [application/pdf]
all fail. Is this even possible?