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

     1  swagger: '2.0'
     2  
     3  info:
     4    version: "1.0.0"
     5    title: broken code because Validate() is not produced
     6    description: broken code produced on polymorphic type
     7  produces:
     8    - application/json
     9  consumes:
    10    - application/json
    11  paths:
    12    /models:
    13      get:
    14        operationId: modelOp
    15        summary: many model variations
    16        description: no description
    17        tags:
    18          - testcgen
    19        responses:
    20          default:
    21            description: Generic Out
    22  definitions:
    23    RangeFilter:
    24      allOf:
    25      - $ref: '#/definitions/Filter'
    26      - properties:
    27          config:
    28            properties:
    29              gt:
    30                format: double
    31                type: number
    32              gte:
    33                format: double
    34                type: number
    35              lt:
    36                format: double
    37                type: number
    38              lte:
    39                format: double
    40                type: number
    41            type: object
    42        required:
    43        - config
    44        type: object
    45    Filter:
    46      discriminator: type
    47      properties:
    48        type:
    49          type: string
    50      required:
    51      - type
    52      type: object
    53    NotFilter:
    54      allOf:
    55      - $ref: '#/definitions/Filter'
    56      - properties:
    57          config:
    58            $ref: '#/definitions/Filter'
    59        required:
    60        - config
    61        type: object