github.com/kaisawind/go-swagger@v0.19.0/fixtures/bugs/740/swagger.yml (about)

     1  swagger: "2.0"
     2  
     3  info:
     4    title: allOf
     5    description: allOf bug example
     6    version: 0.0.1
     7  
     8  schemes:
     9    - http
    10  
    11  consumes:
    12    - application/json
    13  produces:
    14    - application/json
    15  
    16  definitions:
    17  
    18    Lol:
    19      type: object
    20      required:
    21        - xxx
    22        - yyy
    23        - zzz
    24      properties:
    25        xxx:
    26          type: string
    27        yyy:
    28          type: integer
    29        zzz:
    30          type: boolean
    31  
    32    Foo:
    33      type: object
    34      properties:
    35        fauna:
    36          $ref: "#/definitions/Lol"
    37        flora:
    38          $ref: "#/definitions/Lol"
    39        fungi:
    40          $ref: "#/definitions/Lol"
    41  
    42    Bar:
    43      type: object
    44      allOf:
    45        - $ref: "#/definitions/Foo"
    46  
    47    Baz:
    48      type: object
    49      properties:
    50        squirrel:
    51          type: string
    52        owl:
    53          type: string
    54        fox:
    55          type: string
    56  
    57    Awol:
    58      type: object
    59      allOf:
    60        - $ref: "#/definitions/Bar"
    61        - $ref: "#/definitions/Baz"
    62  
    63  paths:
    64  
    65    /awol:
    66      put:
    67        operationId: setAwol
    68        summary: Set Awol
    69        parameters:
    70          - name: awol
    71            in: body
    72            required: true
    73            description: Awol
    74            schema:
    75              $ref: "#/definitions/Awol"
    76        responses:
    77          201:
    78            description: Awol set
    79            schema:
    80              $ref: "#/definitions/Awol"