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

     1  ---
     2    swagger: "2.0"
     3    info: 
     4      title: "param body with array of empty objects"
     5      version: "0.0.1"
     6      description: "repro issue 1537"
     7      license: 
     8        name: "Apache 2.0"
     9        url: "http://www.apache.org/licenses/LICENSE-2.0.html"
    10    definitions: 
    11      recordsModel:
    12        type: array
    13        items:
    14          type: object
    15    paths: 
    16      /getNestedAnonymous: 
    17        get: 
    18          operationId: getNestedAnonymous
    19          parameters:
    20            - name: nestedAnonymous
    21              in: body
    22              schema:
    23                type: array
    24                items: 
    25                  type: array
    26                  items:
    27                    type: array
    28                    items: 
    29                      type: array
    30                      items:
    31                        type: object
    32                        properties:
    33                          a:
    34                            type: string
    35          responses: 
    36            200: 
    37              description: "OK"
    38              schema:
    39                type: array
    40                items: 
    41                  type: array
    42                  items:
    43                    type: array
    44                    items: 
    45                      type: array
    46                      items:
    47                        type: object
    48                        properties:
    49                          a:
    50                            type: string
    51      /getNestedModel: 
    52        get: 
    53          operationId: getNestedModel
    54          parameters:
    55            - name: nestedModel
    56              in: body
    57              schema:
    58                type: array
    59                items: 
    60                  type: array
    61                  items:
    62                    type: array
    63                    items: 
    64                      type: array
    65                      items:
    66                        $ref: '#/definitions/recordsModel'
    67          responses: 
    68            200: 
    69              description: "OK"
    70              schema:
    71                type: array
    72                items: 
    73                  type: array
    74                  items:
    75                    type: array
    76                    items: 
    77                      type: array
    78                      items:
    79                        $ref: '#/definitions/recordsModel'