github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/fixtures/bugs/822/swagger.yml (about) 1 --- 2 swagger: "2.0" 3 info: 4 description: "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters." 5 version: "1.0.0" 6 title: "Swagger Petstore" 7 termsOfService: "http://swagger.io/terms/" 8 contact: 9 email: "apiteam@swagger.io" 10 license: 11 name: "Apache 2.0" 12 url: "http://www.apache.org/licenses/LICENSE-2.0.html" 13 host: "petstore.swagger.io" 14 basePath: "/v2" 15 tags: 16 - 17 name: "pet" 18 description: "Everything about your Pets" 19 externalDocs: 20 description: "Find out more" 21 url: "http://swagger.io" 22 schemes: 23 - "http" 24 paths: 25 /pet: 26 post: 27 tags: 28 - "pet" 29 summary: "Add a new pet to the store" 30 description: "" 31 operationId: "addPet" 32 consumes: 33 - "application/json" 34 - "application/xml" 35 produces: 36 - "application/xml" 37 - "application/json" 38 parameters: 39 - 40 in: "body" 41 name: "body" 42 description: "Pet object that needs to be added to the store" 43 required: true 44 schema: 45 $ref: "#/definitions/Pet" 46 responses: 47 405: 48 description: "Invalid input" 49 securityDefinitions: 50 api_key: 51 type: "apiKey" 52 name: "api_key" 53 in: "header" 54 definitions: 55 Category: 56 type: "object" 57 properties: 58 id: 59 type: "integer" 60 format: "int64" 61 name: 62 type: "string" 63 xml: 64 name: "Category" 65 Tag: 66 type: "object" 67 properties: 68 id: 69 type: "integer" 70 format: "int64" 71 name: 72 type: "string" 73 xml: 74 name: "Tag" 75 Pet: 76 additionalProperties: true 77 type: "object" 78 required: 79 - "name" 80 - "photoUrls" 81 properties: 82 id: 83 type: "integer" 84 format: "int64" 85 category: 86 $ref: "#/definitions/Category" 87 name: 88 type: "string" 89 example: "doggie" 90 photoUrls: 91 type: "array" 92 xml: 93 name: "photoUrl" 94 wrapped: true 95 items: 96 type: "string" 97 tags: 98 type: "array" 99 xml: 100 name: "tag" 101 wrapped: true 102 items: 103 $ref: "#/definitions/Tag" 104 status: 105 type: "string" 106 description: "pet status in the store" 107 enum: 108 - "available" 109 - "pending" 110 - "sold" 111 xml: 112 name: "Pet" 113 externalDocs: 114 description: "Find out more about Swagger" 115 url: "http://swagger.io"