github.com/kaisawind/go-swagger@v0.19.0/fixtures/bugs/1637/fixture-1637.yaml (about)

     1  swagger: '2.0'
     2  info:
     3    version: '0.0.1'
     4    title: Test
     5  schemes:
     6    - http
     7  basePath: /v1
     8  produces:
     9    - application/json
    10  consumes:
    11    - application/json
    12  paths:
    13    /test:
    14      put:
    15        operationId: test
    16        parameters:
    17        - name: payload
    18          in: body
    19          required: true
    20          schema:
    21            type: array
    22            items:
    23              $ref: '#/definitions/Value'
    24        tags:
    25          - Test
    26        responses:
    27          default:
    28            description: "successful operation"
    29  definitions:
    30    Value:
    31      type: object
    32      discriminator: ValueType
    33      required:
    34      - ValueType
    35      properties:
    36        ValueType:
    37          type: string
    38    StringValue:
    39      allOf:
    40      - $ref: '#/definitions/Value'
    41      - type: object
    42        properties:
    43          foobar:
    44            type: string