github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/fixtures/bugs/2911/fixture-2911.yaml (about) 1 swagger: '2.0' 2 info: 3 title: Title 4 description: some description 5 contact: 6 name: John Doe 7 url: https://www.acme.com/support 8 email: support@acme.com 9 version: "1.0.0" 10 paths: 11 /: 12 get: 13 responses: 14 200: 15 description: Example path 16 schema: 17 type: string 18 default: 19 description: generic error 20 schema: 21 type: string 22 definitions: 23 animal: 24 type: 'object' 25 properties: 26 kind: 27 $ref: '#/definitions/pet' 28 pet: 29 type: object 30 required: [type] 31 discriminator: type 32 properties: 33 type: 34 $ref: '#/definitions/petType' 35 36 petType: 37 type: string 38 enum: 39 - dog 40 - cat 41 42 dog: 43 allOf: 44 - $ref: '#/definitions/pet' 45 type: object 46 cat: 47 allOf: 48 - $ref: '#/definitions/pet' 49 type: object