...

Text file src/github.com/go-openapi/analysis/fixtures/fixture-1289-param.yaml

Documentation: github.com/go-openapi/analysis/fixtures

     1---
     2swagger: '2.0'
     3info:
     4  title: 'fixture 1289'
     5  description: an invalid spec but which passes the analysis stage
     6  version: '1.0'
     7produces:
     8  - application/json
     9paths:
    10  '/fixture':
    11    get:
    12      operationId: fixtureOp
    13      parameters:
    14      - $ref: '#/parameters/getSomeIds'
    15      responses:
    16        '200':
    17
    18parameters:
    19  getSomeIds:
    20    name: despicableMe
    21    in: body
    22    description: a bad parameter description
    23    schema:
    24      type: object
    25      properties:
    26        someIds:
    27          # Wrong now
    28          $ref: '#/definitions/someIds'
    29          type: array
    30  someIds:
    31    type: string

View as plain text