...

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

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

     1---
     2swagger: '2.0'
     3info:
     4  title: 'fixture 1289'
     5  version: '1.0'
     6produces:
     7  - application/json
     8paths:
     9  '/fixture':
    10    get:
    11      operationId: op1
    12      responses:
    13        '200':
    14          description: 'erroneous response'
    15          schema:
    16            $ref: '#/definitions/getSomeIds'
    17
    18definitions:
    19  getSomeIds:
    20    type: object
    21    properties:
    22      # Expect a clear message about $ref siblings
    23      someIds:
    24        $ref: '#/definitions/someIds'
    25        type: array
    26
    27  someIds:
    28    type: string

View as plain text