github.com/rzurga/go-swagger@v0.28.1-0.20211109195225-5d1f453ffa3a/fixtures/bugs/1392/fixture-1392-5.yaml (about) 1 swagger: "2.0" 2 info: 3 title: Bug Demo 4 description: Test various body param configurations, with the exception of additionalProperties and additionalItems 5 version: "0.1.0" 6 schemes: 7 - http 8 produces: 9 - application/json 10 consumes: 11 - application/json 12 parameters: 13 btest01: 14 in: body 15 name: myObject 16 schema: 17 $ref: '#/definitions/aNumberValidable' 18 btest02: 19 in: body 20 name: myObject 21 schema: 22 $ref: '#/definitions/aSimpleArray' 23 btest03: 24 in: body 25 name: myObject 26 schema: 27 $ref: '#/definitions/aComplexObject' 28 btest04: 29 in: body 30 name: myObject 31 schema: 32 $ref: '#/definitions/aPrimitive' 33 btest05: 34 in: body 35 name: myObject 36 schema: 37 $ref: '#/definitions/aPrimitiveNumber' 38 btest06: 39 in: body 40 name: myObject 41 schema: 42 $ref: '#/definitions/aPrimitiveValidable' 43 btest07: 44 in: body 45 name: myObject 46 schema: 47 $ref: '#/definitions/anAliasedPrimitive' 48 btest08: 49 in: body 50 name: myObject 51 schema: 52 $ref: '#/definitions/anAliasedPrimitiveValidable' 53 btest09: 54 in: body 55 name: myObject 56 schema: 57 $ref: '#/definitions/anAliasedObject' 58 btest10: 59 in: body 60 name: myObject 61 schema: 62 $ref: '#/definitions/anAliasedObject2' 63 btest11: 64 in: body 65 name: myObject 66 schema: 67 $ref: '#/definitions/anAliasedArray' 68 btest12: 69 in: body 70 name: myObject 71 schema: 72 $ref: '#/definitions/aPrimitiveArray' 73 btest13: 74 in: body 75 name: myObject 76 schema: 77 $ref: '#/definitions/anInterface' 78 btest14: 79 in: body 80 name: myObject 81 schema: 82 $ref: '#/definitions/anObjectOfInterfaces' 83 btest15: 84 in: body 85 name: myObject 86 schema: 87 $ref: '#/definitions/anArrayOfInterfaces' 88 btest16: 89 in: body 90 name: myObject 91 schema: 92 $ref: '#/definitions/aNestedArray' 93 paths: 94 /bodybuilder23: 95 post: 96 operationId: Bodybuilder23 97 description: body btest23 98 parameters: 99 - in: body 100 name: myObject 101 schema: 102 type: array 103 minItems: 15 104 items: 105 $ref: '#/definitions/aSimpleArray' 106 responses: 107 default: 108 description: an error 109 definitions: 110 aNumberValidable: 111 type: integer 112 minimum: 10 113 maximum: 100 114 aSimpleArray: 115 type: array 116 items: 117 type: string 118 enum: [a,b] 119 aComplexObject: 120 type: object 121 required: [prop1] 122 properties: 123 prop1: 124 type: string 125 format: uri 126 prop2: 127 type: string 128 enum: 129 - a 130 - b 131 aPrimitive: 132 type: string 133 minLength: 10 134 aPrimitiveNumber: 135 type: integer 136 format: uint32 137 multipleOf: 10 138 aPrimitiveValidable: 139 type: string 140 enum: [ primitive, civilized, outofthisworld ] 141 anAliasedPrimitive: 142 type: string 143 format: uri 144 anAliasedPrimitiveValidable: 145 type: string 146 format: duration 147 anAliasedObject: 148 $ref: '#/definitions/aComplexObject' 149 anAliasedObject2: 150 $ref: '#/definitions/anAliasedPrimitiveValidable' 151 anAliasedArray: 152 type: array 153 maxItems: 6 154 items: 155 type: string 156 format: uuid 157 aPrimitiveArray: 158 type: array 159 maxItems: 6 160 items: 161 type: integer 162 format: uint32 163 anInterface: 164 type: string 165 format: binary 166 anObjectOfInterfaces: 167 type: object 168 properties: 169 aReader: 170 type: string 171 format: binary 172 anArrayOfInterfaces: 173 type: array 174 maxItems: 6 175 items: 176 type: string 177 format: binary 178 aNestedArray: 179 type: array 180 maxItems: 6 181 items: 182 type: array 183 uniqueItems: true 184 items: 185 type: string 186 format: date