github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/fixtures/bugs/2773/2773.yaml (about)

     1  swagger: "2.0"
     2  info:
     3    description: Example server uploading a file
     4    version: "1.0.0"
     5    title: File Upload
     6  basePath: /
     7  schemes:
     8    - http
     9  consumes:
    10    - application/json
    11  produces:
    12    - application/octet-stream
    13    - application/json
    14  
    15  paths:
    16    /upload:
    17      post:
    18        tags:
    19        - uploads
    20        summary: uploads
    21        operationId: uploadFile
    22        consumes:
    23        - multipart/form-data
    24        - application/x-www-form-urlencoded
    25        parameters:
    26        - name: file
    27          in: formData
    28          type: file
    29          required: true
    30        responses:
    31          "200":
    32            description: OK