github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/fixtures/bugs/1536/fixture-1536-3.yaml (about) 1 --- 2 swagger: "2.0" 3 info: 4 title: "param body with maps" 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 modelObject: 15 type: object 16 properties: 17 aProp: 18 type: string 19 format: hostname 20 modelMap: 21 type: object 22 additionalProperties: 23 type: integer 24 modelMapNullable: 25 type: object 26 additionalProperties: 27 type: integer 28 x-nullable: true 29 modelArray: 30 type: array 31 items: 32 type: object 33 properties: 34 aNum: 35 type: integer 36 maximum: 10 37 modelArrayWithMax: 38 type: array 39 maxItems: 10 40 items: 41 type: object 42 paths: 43 /getArray: 44 get: 45 operationId: getArray 46 parameters: 47 - name: arrayOfObject 48 in: body 49 required: true 50 schema: 51 type: array 52 items: 53 $ref: '#/definitions/modelObject' 54 responses: 55 200: 56 description: "OK" 57 /getArrayNested: 58 get: 59 operationId: getArrayNested 60 parameters: 61 - name: arrayOfarray 62 in: body 63 required: true 64 schema: 65 type: array 66 items: 67 type: array 68 items: 69 $ref: '#/definitions/modelObject' 70 responses: 71 200: 72 description: "OK" 73 /getArrayNestedSimple: 74 get: 75 operationId: getArrayNestedSimple 76 parameters: 77 - name: arrayOfarraySimple 78 in: body 79 required: true 80 schema: 81 type: array 82 items: 83 type: array 84 items: 85 type: string 86 maxLength: 100 87 responses: 88 200: 89 description: "OK" 90 /getMapInterface: 91 get: 92 operationId: getMapInterface 93 parameters: 94 - name: mapOfInterface 95 in: body 96 required: true 97 schema: 98 type: object 99 additionalProperties: 100 $ref: '#/definitions/modelInterface' 101 responses: 102 200: 103 description: "OK" 104 /getMapObject: 105 get: 106 operationId: getMapObject 107 parameters: 108 - name: mapOfObject 109 in: body 110 required: true 111 schema: 112 type: object 113 additionalProperties: 114 $ref: '#/definitions/modelObject' 115 responses: 116 200: 117 description: "OK" 118 /getMapArray: 119 get: 120 operationId: getMapArray 121 parameters: 122 - name: mapOfArray 123 in: body 124 required: true 125 schema: 126 type: object 127 additionalProperties: 128 $ref: '#/definitions/modelArray' 129 responses: 130 200: 131 description: "OK" 132 /getMapOfArrayOfMap: 133 get: 134 operationId: getMapOfArrayOfMap 135 parameters: 136 - name: mapOfArrayOfMap 137 in: body 138 required: true 139 schema: 140 type: object 141 additionalProperties: 142 type: array 143 maxItems: 10 144 items: 145 $ref: '#/definitions/modelMap' 146 responses: 147 200: 148 description: "OK" 149 /getMapOfArrayOfNullableMap: 150 get: 151 operationId: getMapOfArrayOfNullableMap 152 parameters: 153 - name: mapOfArrayOfNullableMap 154 in: body 155 required: true 156 schema: 157 type: object 158 additionalProperties: 159 type: array 160 maxItems: 10 161 items: 162 type: object 163 properties: 164 prop1: 165 type: integer 166 x-nullable: true 167 responses: 168 200: 169 description: "OK" 170 /getMapArrayOfArray: 171 get: 172 operationId: getMapArrayOfArray 173 parameters: 174 - name: mapOfArrayOfArray 175 in: body 176 required: true 177 schema: 178 type: object 179 additionalProperties: 180 type: array 181 maxItems: 10 182 items: 183 $ref: '#/definitions/modelArray' 184 responses: 185 200: 186 description: "OK" 187 /getMapAnonArray: 188 get: 189 operationId: getMapAnonArray 190 parameters: 191 - name: mapOfAnonArray 192 in: body 193 required: true 194 schema: 195 type: object 196 additionalProperties: 197 type: array 198 items: 199 type: integer 200 minimum: 10 201 responses: 202 200: 203 description: "OK" 204 /getMapAnonArrayWithNullable: 205 get: 206 operationId: getMapAnonArrayWithNullable 207 parameters: 208 - name: mapOfAnonArrayWithNullable 209 in: body 210 required: true 211 schema: 212 type: object 213 additionalProperties: 214 type: array 215 items: 216 type: integer 217 minimum: 0 218 responses: 219 200: 220 description: "OK" 221 /getMapAnonArrayWithNestedNullable: 222 get: 223 operationId: getMapAnonArrayWithNestedNullable 224 parameters: 225 - name: mapOfAnonArrayWithNestedNullable 226 in: body 227 required: true 228 schema: 229 type: object 230 additionalProperties: 231 type: array 232 items: 233 type: array 234 items: 235 type: integer 236 minimum: 0 237 responses: 238 200: 239 description: "OK" 240 /getMapAnonArrayWithXNullable: 241 get: 242 operationId: getMapAnonArrayWithXNullable 243 parameters: 244 - name: mapOfAnonArrayWithXNullable 245 in: body 246 required: true 247 schema: 248 type: object 249 additionalProperties: 250 type: array 251 items: 252 type: integer 253 x-nullable: true 254 responses: 255 200: 256 description: "OK" 257 /getMapArrayWithMax: 258 get: 259 operationId: getMapArrayWithMax 260 parameters: 261 - name: mapOfArrayWithMax 262 in: body 263 required: true 264 schema: 265 type: object 266 additionalProperties: 267 $ref: '#/definitions/modelArrayWithMax' 268 responses: 269 200: 270 description: "OK" 271 /getMapOfAnonArray: 272 get: 273 operationId: getMapOfAnonArray 274 parameters: 275 - name: mapOfAnonArray 276 in: body 277 required: true 278 schema: 279 type: object 280 additionalProperties: 281 type: array 282 maxItems: 10 283 items: 284 type: integer 285 maximum: 100 286 responses: 287 200: 288 description: "OK" 289 /getMapOfMap: 290 get: 291 operationId: getMapOfMap 292 parameters: 293 - name: mapOfMap 294 in: body 295 required: true 296 schema: 297 type: object 298 additionalProperties: 299 type: object 300 additionalProperties: 301 $ref: '#/definitions/modelArrayWithMax' 302 responses: 303 200: 304 description: "OK" 305 /getMapOfPrimitive: 306 get: 307 operationId: getMapOfPrimitive 308 parameters: 309 - name: mapOfPrimitive 310 in: body 311 required: true 312 schema: 313 type: object 314 additionalProperties: 315 type: integer 316 maximum: 100 317 responses: 318 200: 319 description: "OK" 320 /getMapOfFormat: 321 get: 322 operationId: getMapOfFormat 323 parameters: 324 - name: mapOfFormat 325 in: body 326 required: true 327 schema: 328 type: object 329 additionalProperties: 330 type: string 331 format: uuid 332 responses: 333 200: 334 description: "OK" 335 /getMapOfAnonMap: 336 get: 337 operationId: getMapOfAnonMap 338 parameters: 339 - name: mapOfAnonMap 340 in: body 341 required: true 342 schema: 343 type: object 344 additionalProperties: 345 type: object 346 additionalProperties: 347 type: array 348 items: 349 type: integer 350 maximum: 100 351 352 responses: 353 200: 354 description: "OK" 355 /getArrayOfMap: 356 get: 357 operationId: getArrayOfMap 358 parameters: 359 - name: arrayOfMap 360 in: body 361 required: true 362 schema: 363 type: array 364 maxItems: 50 365 items: 366 type: object 367 additionalProperties: 368 type: array 369 maxItems: 10 370 items: 371 type: integer 372 format: int32 373 maximum: 100 374 responses: 375 200: 376 description: "OK" 377 /getArrayOfInterface: 378 get: 379 operationId: getArrayOfInterface 380 parameters: 381 - name: arrayOfInterface 382 in: body 383 required: true 384 schema: 385 type: array 386 items: 387 type: object 388 additionalProperties: true 389 responses: 390 200: 391 description: "OK" 392 /getMapOfModelMap: 393 get: 394 operationId: getMapOfModelMap 395 parameters: 396 - name: mapOfModelMap 397 in: body 398 required: true 399 schema: 400 type: object 401 additionalProperties: 402 $ref: '#/definitions/modelMap' 403 responses: 404 200: 405 description: "OK" 406 /getMapOfModelMapNullable: 407 get: 408 operationId: getMapOfModelMapNullable 409 parameters: 410 - name: mapOfModelMapNullable 411 in: body 412 required: true 413 schema: 414 type: object 415 additionalProperties: 416 $ref: '#/definitions/modelMapNullable' 417 responses: 418 200: 419 description: "OK"