github.com/kaisawind/go-swagger@v0.19.0/fixtures/bugs/1746/fixture-1746.yaml (about)

     1  swagger: "2.0"
     2  info:
     3      description: "Documentation for Example Swagger Server."
     4      version: "1.0.0"
     5      title: "Example Swagger Server"
     6  schemes:
     7  - "http"
     8  paths:
     9    /{snippetID}/{left}/{right}:
    10      get:
    11        summary: Get Snippet with snippetID between left and right
    12        operationId: getSnippet
    13        produces:
    14        - "application/octet-stream"
    15        parameters:
    16        - name: snippetID
    17          in: path
    18          description: "Snippet ID"
    19          type: string
    20          required: true
    21        - name: left
    22          in: path
    23          description: "time (in sec since epoch) start"
    24          type: string
    25          required: true
    26        - name: right
    27          in: path
    28          description: "time (in sec since epoch) end"
    29          type: string
    30          required: true
    31        - name: format
    32          in: query
    33          description: "Requested format of the output"
    34          type: string
    35          enum: [foo]
    36          required: true
    37        responses:
    38          200:
    39            description: "successful operation"
    40            schema:
    41              type: string
    42              format: binary
    43          404:
    44            description: "No such snippet"
    45          default:
    46            description: generic error response
    47            schema:
    48              $ref: "#/definitions/Error"
    49      put:
    50        summary: The caller declares that it is in posession of a (brand new) snippet and ready to upload
    51        operationId: putSnippet
    52        produces:
    53        - "application/json"
    54        consumes:
    55        - "application/json"
    56        parameters:
    57        - name: snippetID
    58          in: path
    59          description: "Snippet ID"
    60          type: string
    61          required: true
    62        - name: left
    63          in: path
    64          description: "time (in sec since epoch) start"
    65          type: string
    66          required: true
    67        - name: right
    68          in: path
    69          description: "time (in sec since epoch) end"
    70          type: string
    71          required: true
    72        - in: body
    73          name: body
    74          required: true
    75          schema:
    76            $ref: "#/definitions/NewSnippetRequest"
    77        responses:
    78          200:
    79            description: successful operation
    80            schema:
    81              $ref: "#/definitions/NewSnippetResponse"
    82          409:
    83            description: "Snippet already exists"
    84          default:
    85            description: generic error response
    86            schema:
    87              $ref: "#/definitions/Error"
    88  definitions:
    89    NewSnippetRequest:
    90      type: object
    91    NewSnippetResponse:
    92      type: object
    93      required:
    94        - welcome
    95        - upload_url
    96      properties:
    97        welcome:
    98          type: string
    99        upload_url:
   100          type: string
   101    Error:
   102      type: object
   103      required:
   104        - message
   105        - errorID
   106      properties:
   107        errorID:
   108          type: string
   109        message:
   110          type: string