How to specify that a pdf is returned in swagger?

  responses:
    200:
      description: Returns PDF
      schema: 
        type: file

Out of the options you gave, that’s the right option. Also, make sure to use produces: [application/pdf]

If it fails for you, make sure you use the latest version of the editor. There was a bug related to the file type that was recently resolved.

Leave a Comment

techhipbettruvabetnorabahisbahis forumuedusedueduedueduedusedueduseduedus