github.com/kaisawind/go-swagger@v0.19.0/fixtures/codegen/billforward.discriminators.yml (about)

     1  swagger: '2.0'
     2  
     3  info:
     4    version: "1.0.0"
     5    title: Private to-do list
     6    description: |
     7      A very simple api description that makes a json only API to submit to do's.
     8  
     9  produces:
    10    - application/json
    11  
    12  consumes:
    13    - application/json
    14  
    15  paths:
    16    /models:
    17      get:
    18        operationId: modelOp
    19        summary: many model variations
    20        description: Used to see if a codegen can render all the possible enum categories
    21        tags:
    22          - testcgen
    23        responses:
    24          default:
    25            description: Generic Out
    26  definitions:
    27  
    28    FlatPricingComponent:
    29      allOf:
    30      - {$ref: '#/definitions/PricingComponent'}
    31      - {type: object}
    32  
    33    TieredPricingComponent:
    34      allOf:
    35      - {$ref: '#/definitions/PricingComponent'}
    36      - {type: object}
    37  
    38    TieredVolumePricingComponent:
    39      allOf:
    40      - {$ref: '#/definitions/PricingComponent'}
    41      - {type: object}
    42  
    43    PricingComponent:
    44      type: object
    45      discriminator: chargeModel
    46      properties:
    47        priceExplanation: {type: array, items: {type: string}}
    48        priceExplanationString: {type: string}
    49      xml:
    50        name: pricingComponent