github.com/rzurga/go-swagger@v0.28.1-0.20211109195225-5d1f453ffa3a/fixtures/bugs/2300/fixture-2300.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 obj: 12 type: object 13 required: [ req1, req2, req3, req4, req5 ] 14 properties: 15 req1: 16 $ref: '#/definitions/requiredInterface' 17 req2: 18 $ref: '#/definitions/requiredNonNullableInterface' 19 req3: 20 $ref: '#/definitions/requiredNullableInterface' 21 req4: 22 $ref: '#/definitions/requiredMap' 23 req5: 24 $ref: '#/definitions/basic' 25 nreq1: 26 $ref: '#/definitions/requiredInterface' 27 nreq2: 28 $ref: '#/definitions/requiredNonNullableInterface' 29 nreq3: 30 $ref: '#/definitions/requiredNullableInterface' 31 nreq4: 32 $ref: '#/definitions/requiredMap' 33 nreq5: 34 $ref: '#/definitions/basic' 35 36 requiredInterface: 37 type: object 38 additionalProperties: true 39 requiredNonNullableInterface: 40 type: object 41 additionalProperties: true 42 x-nullable: false 43 requiredNullableInterface: 44 type: object 45 additionalProperties: true 46 x-nullable: true 47 requiredMap: 48 type: object 49 additionalProperties: 50 type: object 51 basic: 52 type: object 53 required: [ a ] 54 properties: 55 a: 56 type: 57 string 58 b: 59 type: 60 string 61 paths: 62 /getRecords: 63 get: 64 operationId: getRecords 65 parameters: 66 - name: records 67 in: body 68 required: true 69 schema: 70 $ref: '#/definitions/obj' 71 responses: 72 200: 73 description: "OK"