...

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

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

     1swagger: '2.0'
     2info:
     3  title: issue-342
     4  description: A variant on issue-342 with an incorrect attempt to fix the $ref sibling issue
     5  version: 0.0.1
     6  license:
     7    name: MIT
     8host: localhost:8081
     9basePath: /api/v1
    10schemes:
    11  - http
    12consumes:
    13  - application/json
    14produces:
    15  - application/json
    16paths:
    17  /get_main_object:
    18    get:
    19      tags:
    20        - maindata
    21      parameters:
    22          # Here, declared as a property and not an item: cannot marshall
    23        $ref: "#/parameters/sid"  
    24      responses:
    25        '200':
    26
    27parameters:
    28  sid:
    29    #name: mysid
    30    in: body
    31    required: true
    32    type: integer
    33    format: int64
    34

View as plain text