github.com/kaisawind/go-swagger@v0.19.0/fixtures/bugs/1536/fixture-1536.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      modelInterface:
    12        type: object
    13        additionalProperties: true
    14      recordsModel:
    15        type: array
    16        items:
    17          type: object
    18      recordsModelWithMax:
    19        type: array
    20        maxItems: 10
    21        items:
    22          type: object
    23    paths: 
    24      /getRecords: 
    25        get: 
    26          operationId: getRecords
    27          parameters:
    28            - name: records
    29              in: body
    30              required: true
    31              schema:
    32                type: array
    33                items:
    34                  type: object
    35          responses: 
    36            200: 
    37              description: "OK"
    38      /getRecordsNonRequired: 
    39        get: 
    40          operationId: getRecordsNonRequired
    41          parameters:
    42            - name: recordsNonRequired
    43              in: body
    44              required: false
    45              schema:
    46                type: array
    47                items:
    48                  type: object
    49          responses: 
    50            200: 
    51              description: "OK"
    52      /getRecordsMax: 
    53        get: 
    54          operationId: getRecordsMax
    55          parameters:
    56            - name: maxRecords
    57              in: body
    58              required: true
    59              schema:
    60                type: array
    61                maxItems: 10
    62                items:
    63                  type: object
    64          responses: 
    65            200: 
    66              description: "OK"
    67      /getInterface: 
    68        get: 
    69          operationId: getInterface
    70          parameters:
    71            - name: generic
    72              in: body
    73              schema:
    74                type: object
    75          responses: 
    76            200: 
    77              description: "OK"
    78      /getAnotherInterface: 
    79        get: 
    80          operationId: getAnotherInterface
    81          parameters:
    82            - name: anotherGeneric
    83              in: body
    84              schema:
    85                type: object
    86                additionalProperties: true
    87          responses: 
    88            200: 
    89              description: "OK"
    90      /getMap: 
    91        get: 
    92          operationId: getMap
    93          parameters:
    94            - name: genericMap
    95              in: body
    96              schema:
    97                type: object
    98                additionalProperties: 
    99                  $ref: '#/definitions/modelInterface'
   100          responses: 
   101            200: 
   102              description: "OK"
   103      /getMapSlice: 
   104        get: 
   105          operationId: getMapSlice
   106          parameters:
   107            - name: genericMapSlice
   108              in: body
   109              schema:
   110                type: array
   111                items:
   112                  type: object
   113                  additionalProperties: 
   114                    $ref: '#/definitions/modelInterface'
   115          responses: 
   116            200: 
   117              description: "OK"
   118      /getSliceMap: 
   119        get: 
   120          operationId: getSliceMap
   121          parameters:
   122            - name: genericSliceMap
   123              in: body
   124              schema:
   125                type: object
   126                additionalProperties: 
   127                  type: array
   128                  items:
   129                    $ref: '#/definitions/modelInterface'
   130          responses: 
   131            200: 
   132              description: "OK"
   133      /getNested: 
   134        get: 
   135          operationId: getNested
   136          parameters:
   137            - name: genericNested
   138              in: body
   139              schema:
   140                type: array
   141                items: 
   142                  type: array
   143                  items:
   144                    type: array
   145                    items: 
   146                      type: array
   147                      items:
   148                        type: object
   149          responses: 
   150            200: 
   151              description: "OK"
   152      /getNestedWithValidations: 
   153        get: 
   154          operationId: getNestedWithValidations
   155          parameters:
   156            - name: genericNestedWithValidations
   157              in: body
   158              schema:
   159                type: array
   160                items: 
   161                  type: array
   162                  items:
   163                    type: array
   164                    items: 
   165                      type: array
   166                      maxItems: 10
   167                      items:
   168                        type: object
   169          responses: 
   170            200: 
   171              description: "OK"
   172      /getNestedRequired: 
   173        get: 
   174          operationId: getNestedRequired
   175          parameters:
   176            - name: objectNestedRequired
   177              in: body
   178              schema:
   179                type: array
   180                items: 
   181                  type: array
   182                  items:
   183                    type: array
   184                    items: 
   185                      type: array
   186                      items:
   187                        type: object
   188                        required: [pkcs]
   189                        properties:
   190                          pkcs:
   191                            type: string
   192          responses: 
   193            200: 
   194              description: "OK"