github.com/kaisawind/go-swagger@v0.19.0/fixtures/bugs/196/swagger.yml (about)

     1  swagger: '2.0'
     2  info:
     3    title: Validation Issue
     4    description: Endpoints
     5    version: 0.0.1
     6  basePath: /v1
     7  consumes:
     8    - application/json
     9  produces:
    10    - application/json
    11  
    12  paths:
    13    /events:
    14      post:
    15        operationId: postEvents
    16        parameters:
    17          - name: event
    18            in: body
    19            description: Event to post
    20            required: true
    21            schema:
    22              $ref: '#/definitions/Event'
    23        responses:
    24          '201':
    25            $ref: '#/responses/CreatedEventResponse'
    26  
    27  definitions:
    28    Event:
    29      type: string
    30  
    31  responses:
    32    CreatedEventResponse:
    33      description: Successfully created an event
    34      schema:
    35        $ref: '#/definitions/Event'