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