github.com/rzurga/go-swagger@v0.28.1-0.20211109195225-5d1f453ffa3a/fixtures/bugs/2364/fixture-2364.yaml (about) 1 swagger: "2.0" 2 info: 3 title: "repro #2364" 4 version: "0.0.1" 5 description: "repro issue 2364" 6 license: 7 name: "Apache 2.0" 8 url: "http://www.apache.org/licenses/LICENSE-2.0.html" 9 paths: 10 /getRecords: 11 get: 12 operationId: getRecords 13 responses: 14 200: 15 description: "OK" 16 schema: 17 $ref: '#/definitions/BundleAttributesResponse' 18 19 definitions: 20 BundleAttributesResponse: 21 properties: 22 type: 23 $ref: "#/definitions/BundleType" 24 items: 25 description: Array of bundle items in the root of the bundle. 26 type: array 27 items: 28 $ref: "#/definitions/BundleItemResponse" 29 sections: 30 description: Array of bundle section in the root of the bundle. 31 type: array 32 items: 33 $ref: "#/definitions/ItemBundleSectionResponse" 34 nullableSections: 35 type: array 36 items: 37 $ref: "#/definitions/NullableItemBundleSectionResponse" 38 otherSections: 39 type: array 40 items: 41 $ref: "#/definitions/OtherItemBundleSectionResponse" 42 43 BundleType: 44 type: string 45 46 BundleItemResponse: 47 type: object 48 properties: 49 id: 50 type: string 51 x-nullable: false 52 53 BundleSectionResponse: 54 type: object 55 x-omitempty: false 56 properties: 57 id: 58 type: string 59 x-omitempty: false 60 example: 5dfb977429ec145dd6f9c307 61 62 ItemBundleSectionResponse: 63 allOf: 64 - $ref: "#/definitions/BundleSectionResponse" 65 - type: object 66 x-omitempty: false 67 properties: 68 items: 69 description: Array of bundle items inside a section of the bundle 70 type: array 71 items: 72 $ref: "#/definitions/BundleItemResponse" 73 x-nullable: false 74 75 NullableItemBundleSectionResponse: 76 allOf: 77 - $ref: "#/definitions/BundleSectionResponse" 78 - type: object 79 x-omitempty: false 80 properties: 81 items: 82 description: Array of bundle items inside a section of the bundle 83 type: array 84 items: 85 $ref: "#/definitions/BundleItemResponse" 86 x-nullable: true 87 88 OtherItemBundleSectionResponse: 89 allOf: 90 - $ref: "#/definitions/BundleSectionResponse" 91 - type: object 92 x-omitempty: false 93 properties: 94 items: 95 description: Array of bundle items inside a section of the bundle 96 type: array 97 items: 98 $ref: "#/definitions/BundleItemResponse"