github.com/rzurga/go-swagger@v0.28.1-0.20211109195225-5d1f453ffa3a/fixtures/bugs/1663/fixture-1663.yaml (about) 1 swagger: '2.0' 2 basePath: / 3 host: localhost 4 info: 5 title: 'reproduce #1894' 6 version: 0.1.0 7 consumes: 8 - '*/*' 9 - application/io.swagger.examples.todo-list.v1+json 10 produces: 11 - '*/*' 12 - application/io.swagger.examples.todo-list.v1+json 13 schemes: 14 - http 15 - https 16 paths: 17 /: 18 get: 19 tags: ["todos"] 20 operationId: find 21 parameters: 22 - name: limit 23 in: formData 24 type: integer 25 format: int32 26 required: true 27 allowEmptyValue: true 28 - name: "X-Rate-Limit" 29 in: header 30 type: integer 31 format: int32 32 required: true 33 - name: tags 34 in: formData 35 type: array 36 collectionFormat: multi 37 allowEmptyValue: true 38 items: 39 type: integer 40 format: int32 41 required: true 42 responses: 43 '200': 44 description: OK 45 schema: 46 type: array 47 items: 48 $ref: "#/definitions/item" 49 default: 50 description: error 51 schema: 52 $ref: "#/definitions/error" 53 post: 54 tags: ["todos"] 55 operationId: addOne 56 parameters: 57 - name: body 58 in: body 59 schema: 60 $ref: "#/definitions/item" 61 responses: 62 '201': 63 description: Created 64 schema: 65 $ref: "#/definitions/item" 66 default: 67 description: error 68 schema: 69 $ref: "#/definitions/error" 70 /{id}: 71 parameters: 72 - type: string 73 name: id 74 in: path 75 required: true 76 put: 77 tags: ["todos"] 78 operationId: updateOne 79 parameters: 80 - name: body 81 in: body 82 schema: 83 $ref: "#/definitions/item" 84 responses: 85 '200': 86 description: OK 87 schema: 88 $ref: "#/definitions/item" 89 default: 90 description: error 91 schema: 92 $ref: "#/definitions/error" 93 delete: 94 tags: ["todos"] 95 operationId: destroyOne 96 responses: 97 '204': 98 description: Deleted 99 default: 100 description: error 101 schema: 102 $ref: "#/definitions/error" 103 definitions: 104 item: 105 type: object 106 required: 107 - description 108 properties: 109 id: 110 type: integer 111 format: int64 112 readOnly: true 113 description: 114 type: string 115 minLength: 1 116 completed: 117 type: boolean 118 error: 119 type: object 120 required: 121 - message 122 properties: 123 code: 124 type: integer 125 format: int64 126 message: 127 type: string