github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/fixtures/enhancements/936/fixture-936.yml (about) 1 swagger: '2.0' 2 basePath: / 3 host: localhost 4 info: 5 version: 0.1.0 6 title: Simple To Do List API 7 description: | 8 This is a simple todo list API 9 illustrating go-swagger codegen 10 capabilities. 11 termsOfService: | 12 There are actually none. 13 This is for demonstration purpose only. 14 license: 15 name: 'Apache 2.0' 16 url: https://www.apache.org/licenses/LICENSE-2.0 17 contact: 18 name: go-openapi maintainers 19 email: nowhere@example.com 20 url: https://github.com/go-openapi 21 22 consumes: 23 - application/json 24 produces: 25 - application/json 26 schemes: 27 - http 28 - https 29 x-schemes: 30 - unix 31 paths: 32 /: 33 get: 34 tags: ["todos"] 35 operationId: find 36 parameters: 37 - name: body 38 in: body 39 schema: 40 $ref: '#/definitions/object_2' 41 responses: 42 default: 43 description: error 44 schema: 45 $ref: "#/definitions/error" 46 post: 47 tags: ["todos"] 48 operationId: add 49 parameters: 50 - name: body 51 in: body 52 schema: 53 $ref: '#/definitions/object_2' 54 responses: 55 default: 56 description: error 57 schema: 58 $ref: "#/definitions/error" 59 definitions: 60 object_1: 61 type: object 62 properties: 63 name: 64 type: string 65 readOnly: true 66 id: 67 type: integer 68 readOnly: true 69 object_2: 70 type: object 71 properties: 72 object_ref: 73 type: object 74 $ref: '#/definitions/object_1' 75 object_3: 76 type: object 77 properties: 78 inline_object: 79 type: object 80 properties: 81 name: 82 type: string 83 readOnly: true 84 object_4: 85 type: array 86 items: 87 type: string 88 readOnly: true 89 object_5: 90 type: string 91 readOnly: true 92 object_6: 93 type: array 94 items: 95 $ref: '#/definitions/object_5' 96 object_7: 97 type: object 98 allOf: 99 - $ref: '#/definitions/object_5' 100 - $ref: '#/definitions/object_4' 101 - type: object 102 properties: 103 object_7_field_1: 104 type: string 105 readOnly: true 106 object_7_field_2: 107 type: string 108 object_7_field_3: 109 $ref: '#/definitions/object_6' 110 111 error: 112 type: object 113 required: 114 - message 115 properties: 116 code: 117 type: integer 118 format: int64 119 message: 120 type: string 121 122 # x go type 123 Time: 124 type: string 125 format: date-time 126 x-go-type: 127 import: 128 package: time 129 embedded: true 130 type: Time 131 x-nullable: true 132 133 # additional properties 134 object_8: 135 type: object 136 additionalProperties: 137 type: string 138 readOnly: true 139 format: datetime 140 object_9: 141 type: object 142 additionalProperties: 143 type: object 144 properties: 145 object_9_field_1: 146 type: string 147 format: datetime 148 readOnly: true 149 object_9_field_2: 150 type: integer