...

Text file src/github.com/go-openapi/validate/fixtures/validation/fixture-bad-response.yaml

Documentation: github.com/go-openapi/validate/fixtures/validation

     1---
     2swagger: '2.0'
     3info:
     4  title: checking $ref siblings in response
     5  version: '1.0'
     6  description: |
     7    This one checks that wrong response declaraion with $ref sibling
     8    is correcly handled and reported
     9
    10produces:
    11  - application/json
    12paths:
    13  /fixture:
    14    get:
    15      operationId: op1
    16      parameters:
    17        - name: myid
    18          in: body
    19          schema:
    20            $ref: '#/definitions/myId'
    21      responses:
    22        200:
    23          description: 'response with $ref sibling'
    24          schema:
    25          $ref: '#/definitions/someIds'
    26
    27definitions:
    28  myId:
    29    type: string
    30  someIds:
    31    type: integer

View as plain text