github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/fixtures/bugs/2136/fixture-2136.yaml (about) 1 swagger: "2.0" 2 info: 3 description: Test 4 title: Test 5 version: "0.0.1" 6 basePath: /v1 7 consumes: 8 - application/json 9 produces: 10 - application/json 11 12 paths: 13 /getMap: 14 get: 15 parameters: 16 - name: b1 17 in: query 18 type: string 19 format: byte 20 - name: b2 21 in: query 22 type: array 23 items: 24 type: array 25 items: 26 type: string 27 format: byte 28 - name: b3 29 in: query 30 type: array 31 items: 32 type: array 33 maxItems: 10 34 items: 35 type: string 36 format: byte 37 responses: 38 200: 39 description: OK 40 schema: 41 $ref: "#/definitions/b64Map" 42 43 /getOpeMap: 44 get: 45 responses: 46 200: 47 description: OK 48 schema: 49 type: object 50 additionalProperties: 51 type: string 52 format: byte 53 put: 54 parameters: 55 - name: a3 56 in: body 57 schema: 58 type: array 59 items: 60 type: array 61 maxItems: 10 62 items: 63 type: string 64 format: byte 65 responses: 66 204: 67 description: OK 68 69 /getNestedMap: 70 get: 71 responses: 72 200: 73 description: OK 74 schema: 75 type: object 76 additionalProperties: 77 type: object 78 properties: 79 z: 80 type: string 81 format: byte 82 zz: 83 type: string 84 format: uuid 85 additionalProperties: 86 type: object 87 properties: 88 x: 89 type: string 90 format: byte 91 xx: 92 type: string 93 format: uuid 94 95 put: 96 parameters: 97 - name: m1 98 in: body 99 required: true 100 schema: 101 type: object 102 additionalProperties: 103 type: object 104 additionalProperties: 105 type: string 106 format: byte 107 responses: 108 204: 109 description: OK 110 111 /getOpeMapObject: 112 get: 113 responses: 114 200: 115 description: OK 116 schema: 117 type: object 118 additionalProperties: 119 $ref: '#/definitions/b64Alias' 120 121 /getArray: 122 get: 123 responses: 124 200: 125 description: OK 126 schema: 127 $ref: "#/definitions/b64Array" 128 129 put: 130 parameters: 131 - name: a4 132 in: body 133 required: true 134 schema: 135 type: array 136 items: 137 type: array 138 items: 139 type: array 140 maxItems: 10 141 items: 142 type: string 143 format: byte 144 responses: 145 204: 146 description: OK 147 148 /getOpeArray: 149 get: 150 responses: 151 200: 152 description: OK 153 schema: 154 type: array 155 items: 156 $ref: "#/definitions/b64Object" 157 158 /getNestedArray: 159 get: 160 responses: 161 200: 162 description: OK 163 schema: 164 type: array 165 items: 166 type: array 167 maxItems: 10 168 items: 169 type: object 170 additionalProperties: 171 type: string 172 format: byte 173 174 /getNestedModelArray: 175 get: 176 responses: 177 200: 178 description: OK 179 schema: 180 $ref: '#/definitions/nestedModelArray' 181 182 put: 183 parameters: 184 - name: m5 185 in: body 186 required: true 187 schema: 188 type: object 189 additionalProperties: 190 type: array 191 maxItems: 10 192 items: 193 type: object 194 additionalProperties: 195 type: array 196 items: 197 type: string 198 format: byte 199 responses: 200 204: 201 description: OK 202 203 definitions: 204 nestedModelArray: 205 type: array 206 items: 207 type: array 208 items: 209 type: array 210 minItems: 1 211 items: 212 type: string 213 format: byte 214 215 b64Alias: 216 type: string 217 format: byte 218 219 b64Object: 220 type: object 221 properties: 222 x: 223 type: string 224 format: byte 225 226 b64ObjectWithValidations: 227 type: object 228 properties: 229 x: 230 type: string 231 format: byte 232 maxLength: 100 233 z: 234 type: string 235 format: uuid 236 237 b64Map: 238 type: object 239 properties: 240 a: 241 additionalProperties: 242 type: string 243 format: byte 244 245 b64MapWithValidations: 246 type: object 247 properties: 248 a: 249 additionalProperties: 250 type: string 251 format: byte 252 minLength: 10 253 254 b64Array: 255 type: array 256 items: 257 type: string 258 format: byte 259 260 b64ArrayWithValidations: 261 type: array 262 maxItems: 10 263 items: 264 type: string 265 format: byte