github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/fixtures/bugs/1083/petstore.yaml (about) 1 schemes: 2 - http 3 swagger: "2.0" 4 info: 5 contact: 6 name: wordnik api team 7 url: http://developer.wordnik.com 8 license: 9 name: Creative Commons 4.0 International 10 url: http://creativecommons.org/licenses/by/4.0/ 11 title: Swagger Petstore 12 version: 1.0.0 13 host: petstore.swagger.wordnik.com 14 basePath: /api 15 paths: 16 /pets: 17 get: 18 responses: 19 "200": 20 description: pet response 21 headers: 22 x-expires: 23 type: string 24 schema: 25 items: 26 $ref: '#/definitions/Pet' 27 type: array 28 default: 29 description: unexpected error 30 schema: 31 $ref: '#/definitions/Error' 32 summary: finds pets in the system 33 tags: 34 - Pet Operations 35 /pets/{id}: 36 get: 37 parameters: 38 - name: id 39 in: path 40 required: true 41 type: string 42 responses: 43 "200": 44 description: pet response 45 schema: 46 $ref: '#/definitions/Pet' 47 default: 48 description: unexpected error 49 schema: 50 $ref: '#/definitions/Error' 51 tags: 52 - Pet Operations 53 54 definitions: 55 Error: 56 properties: 57 code: 58 format: int32 59 type: integer 60 message: 61 type: string 62 required: 63 - code 64 - message 65 Pet: 66 properties: 67 id: 68 format: int64 69 type: integer 70 name: 71 type: string 72 tag: 73 type: string 74 required: 75 - id 76 - name