github.com/AngusLu/go-swagger@v0.28.0/fixtures/bugs/2493/fixture-2493.yaml (about)

     1  ---
     2  swagger: '2.0'
     3  info:
     4    description: Test
     5    version: 0.0.1
     6    title: Test
     7  host: test
     8  basePath: /test/v1
     9  schemes:
    10    - http
    11  consumes:
    12    - application/json
    13  produces:
    14    - application/json
    15  paths:
    16    /test:
    17      post:
    18        operationId: test
    19        parameters:
    20          - name: body
    21            in: body
    22            required: true
    23            schema:
    24              $ref: '#/definitions/TestRequest'
    25        responses:
    26          200:
    27            description: OK
    28  definitions:
    29    TestRequest:
    30      type: object
    31      properties:
    32        name:
    33          type: string