github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/fixtures/diff/kitchensink.v2.json (about) 1 { 2 "swagger": "2.0", 3 "info": { 4 "title": "Swagger Fixture", 5 "version": "1.0" 6 }, 7 "host": "petstore.swaggery.wordnik.com", 8 "basePath": "/apibaby", 9 "schemes": [ 10 "https" 11 ], 12 "consumes": [ 13 "bob" 14 ], 15 "produces": [ 16 "bob" 17 ], 18 "paths": { 19 "/a/": { 20 "get": { 21 "parameters": [ 22 { 23 "name": "limit", 24 "in": "query", 25 "required": false, 26 "type": "integer" 27 }, 28 { 29 "name": "headerParam", 30 "in": "header", 31 "type": "string" 32 }, 33 { 34 "name": "addedHeaderParam", 35 "in": "header", 36 "type": "string", 37 "format": "password" 38 }, 39 { 40 "name": "changeMaxInt", 41 "in": "query", 42 "required": false, 43 "type": "integer", 44 "maximum": 300, 45 "exclusiveMaximum": true 46 }, 47 { 48 "name": "removeMaxInt", 49 "in": "query", 50 "required": false, 51 "type": "integer", 52 "maximum": 200, 53 "exclusiveMaximum": false 54 }, 55 { 56 "name": "changeMinInt", 57 "in": "query", 58 "required": false, 59 "type": "integer", 60 "minimum": 300, 61 "exclusiveMinimum": true 62 }, 63 { 64 "name": "wideryString", 65 "in": "query", 66 "required": false, 67 "type": "string" 68 }, 69 { 70 "name": "personality", 71 "in": "query", 72 "required": false, 73 "type": "string", 74 "enum": [ 75 "crazy", 76 "empathic", 77 "saucy" 78 ] 79 }, 80 { 81 "name": "changeyPattern", 82 "in": "query", 83 "required": false, 84 "type": "string", 85 "pattern": "anewpattern" 86 }, 87 { 88 "name": "primToObj", 89 "in": "query", 90 "required": false, 91 "schema": { 92 "$ref": "#/definitions/A2" 93 } 94 }, 95 { 96 "name": "ObjToPrim", 97 "in": "query", 98 "required": false, 99 "type": "integer" 100 } 101 ], 102 "responses": { 103 "200": { 104 "description": "200 response", 105 "schema": { 106 "type": "array", 107 "items": { 108 "$ref": "#/definitions/A1" 109 } 110 } 111 } 112 } 113 }, 114 "post": { 115 "parameters": [ 116 { 117 "name": "", 118 "in": "body", 119 "schema": { 120 "$ref": "#/definitions/A2" 121 } 122 } 123 ], 124 "responses": { 125 "200": { 126 "description": "200 response", 127 "schema": { 128 "$ref": "#/definitions/A3" 129 } 130 } 131 } 132 } 133 }, 134 "/a/{id}": { 135 "get": { 136 "parameters": [ 137 { 138 "name": "flavour", 139 "required": false, 140 "in": "query", 141 "type": "string" 142 }, 143 { 144 "name": "id", 145 "in": "path", 146 "type": "string" 147 } 148 ], 149 "responses": { 150 "200": { 151 "description": "200 response", 152 "schema": { 153 "type": "array", 154 "items": { 155 "$ref": "#/definitions/A1" 156 } 157 } 158 } 159 } 160 }, 161 "post": { 162 "parameters": [ 163 { 164 "name": "", 165 "in": "body", 166 "schema": { 167 "$ref": "#/definitions/A2" 168 } 169 } 170 ], 171 "responses": { 172 "200": { 173 "description": "200 response", 174 "schema": { 175 "$ref": "#/definitions/A3" 176 } 177 } 178 } 179 } 180 }, 181 "/b/": { 182 "get": { 183 "parameters": [ 184 { 185 "name": "limit", 186 "in": "query", 187 "required": false, 188 "type": "integer" 189 } 190 ], 191 "responses": { 192 "200": { 193 "description": "200 response", 194 "schema": { 195 "type": "array", 196 "items": { 197 "$ref": "#/definitions/A1" 198 } 199 } 200 } 201 } 202 }, 203 "post": { 204 "parameters": [ 205 { 206 "name": "", 207 "in": "body", 208 "schema": { 209 "$ref": "#/definitions/A2" 210 } 211 } 212 ], 213 "responses": { 214 "200": { 215 "description": "200 response", 216 "schema": { 217 "$ref": "#/definitions/A3" 218 } 219 } 220 } 221 } 222 }, 223 "/c/": { 224 "get": { 225 "responses": { 226 "200": { 227 "description": "200 response", 228 "schema": { 229 "type": "array", 230 "maxItems": 1, 231 "items": { 232 "type": "object", 233 "properties":{ 234 "id": {"type": "integer"} 235 } 236 } 237 } 238 } 239 } 240 } 241 } 242 }, 243 "definitions": { 244 "A1": { 245 "type": "object", 246 "required": ["busby"], 247 "properties": { 248 "id": { 249 "type": "integer" 250 }, 251 "name": { 252 "type": "string" 253 }, 254 "personality": { 255 "type": "string", 256 "enum": [ 257 "crazy", 258 "empathic", 259 "saucy" 260 ] 261 }, 262 "busby": { 263 "type": "string" 264 }, 265 "newProp": { 266 "type": "string" 267 }, 268 "onceWasArray": { 269 "type": "string" 270 }, 271 "sameWideness": { 272 "type": "number", 273 "format":"float" 274 } 275 } 276 }, 277 "A2": { 278 "type": "object", 279 "required": [ 280 "name" 281 ], 282 "properties": { 283 "name": { 284 "type": "string" 285 }, 286 "description": { 287 "type": "string" 288 } 289 } 290 }, 291 "ThisWasAdded": { 292 "type": "object", 293 "required": [ 294 "name" 295 ], 296 "properties": { 297 "name": { 298 "type": "string" 299 }, 300 "description": { 301 "type": "string" 302 } 303 } 304 }, 305 "A3": { 306 "type": "object", 307 "properties": { 308 "id": { 309 "type": "integer" 310 }, 311 "name": { 312 "type": "string" 313 }, 314 "description": { 315 "type": "string" 316 }, 317 "letters": { 318 "type": "array", 319 "items": { 320 "type": "string" 321 } 322 }, 323 "attributes": { 324 "type": "object", 325 "additionalProperties": { 326 "type": "string" 327 } 328 } 329 } 330 } 331 } 332 }