github.com/rzurga/go-swagger@v0.28.1-0.20211109195225-5d1f453ffa3a/fixtures/bugs/1548/fixture-1548.yaml (about) 1 swagger: '2.0' 2 3 info: 4 title: My App API 5 description: My App API 6 version: 1.0.0 7 contact: 8 name: Artemy Shepelev 9 email: ffelian@gmail.com 10 11 schemes: 12 - http 13 14 produces: 15 - application/json 16 17 consumes: 18 - application/json 19 20 definitions: 21 base64Model: 22 type: object 23 properties: 24 prop1: 25 type: string 26 format: byte 27 base64Alias: 28 type: string 29 format: byte 30 base64Array: 31 type: array 32 items: 33 type: string 34 format: byte 35 base64Map: 36 type: object 37 additionalProperties: 38 type: string 39 format: byte 40 maxLength: 100 41 paths: 42 /in: 43 post: 44 summary: My method 45 operationId: MyMethod 46 parameters: 47 - name: data 48 in: body 49 schema: 50 type: string 51 format: byte 52 - name: byteInQuery 53 in: query 54 type: string 55 format: byte 56 required: true 57 maxLength: 100 58 responses: 59 default: 60 description: Ok 61 schema: 62 type: string 63 format: byte 64 /model: 65 post: 66 summary: My model method 67 operationId: MyModelMethod 68 parameters: 69 - name: data 70 in: body 71 schema: 72 $ref: '#/definitions/base64Model' 73 responses: 74 200: 75 description: Ok 76 schema: 77 $ref: '#/definitions/base64Alias' 78 203: 79 description: Ok 80 schema: 81 $ref: '#/definitions/base64Array' 82 204: 83 description: Ok 84 schema: 85 $ref: '#/definitions/base64Map' 86 default: 87 description: Ok 88 schema: 89 $ref: '#/definitions/base64Model'