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

     1  swagger: '2.0'
     2  info:
     3    title: Foo Bar
     4    version: "1.0"
     5    description: Temp description
     6  schemes:
     7    - http
     8  basePath: /api
     9  produces:
    10    - application/json
    11    - text/plain
    12  consumes:
    13    - application/json
    14  
    15  securityDefinitions:
    16    apikey:
    17      type: apiKey
    18      name: api_key
    19      in: header
    20  
    21  paths:
    22    '/ping':
    23      get:
    24        security:
    25        - apikey: []
    26        summary: Ping the server
    27        description: Ping the server
    28        operationId: ping
    29        produces:
    30          - text/plain
    31        responses:
    32          200:
    33            description: OK
    34            schema:
    35              type: string
    36              example:
    37                'pong'
    38          500:
    39            $ref: "#/responses/internalServerError"
    40  
    41  definitions:
    42    Error:
    43      type: object
    44      properties:
    45        code:
    46          type: integer
    47        description:
    48          type: string
    49  
    50  responses:
    51    internalServerError:
    52      description: Server error
    53      schema:
    54        $ref: '#/definitions/Error'