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

     1  swagger: '2.0'
     2  
     3  info:
     4    version: "1.0.0"
     5    title: allOf without the explicit type object
     6    description: checking that properties is enough to figure out an object schema
     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    Cluster:
    24      type: object 
    25      allOf:
    26        - $ref: '#/definitions/NewCluster'
    27        - properties:
    28            result: 
    29              description: results of cluster creation 
    30              type: string  
    31            status:
    32              description: status of cluster created|updated|running|deleted 
    33              type: string
    34    NewCluster:
    35      type: object
    36      properties: 
    37        dummyProp1:
    38          type: integer