github.com/rzurga/go-swagger@v0.28.1-0.20211109195225-5d1f453ffa3a/fixtures/bugs/743/swagger.yml (about) 1 swagger: "2.0" 2 3 info: 4 title: Discriminator 5 description: Discriminator bug example 6 version: 0.0.1 7 8 schemes: 9 - http 10 11 consumes: 12 - application/json 13 produces: 14 - application/json 15 16 definitions: 17 18 Id: 19 type: object 20 discriminator: type 21 required: 22 - type 23 - id 24 properties: 25 type: 26 type: string 27 id: 28 type: integer 29 30 Foo: 31 type: object 32 allOf: 33 - $ref: "#/definitions/Id" 34 35 Bar: 36 type: object 37 properties: 38 bar: 39 type: string 40 41 Awol: 42 type: object 43 allOf: 44 - $ref: "#/definitions/Foo" 45 - $ref: "#/definitions/Bar" 46 47 paths: 48 49 /awol: 50 get: 51 operationId: awol 52 summary: get awol 53 responses: 54 200: 55 description: awol 56 schema: 57 $ref: "#/definitions/Awol"