fork of hey-api/openapi-ts because I need some additional things
at main 44 lines 977 B view raw
1openapi: 3.0.4 2info: 3 title: OpenAPI 3.0.4 circular example 4 version: 1 5components: 6 schemas: 7 Foo: 8 type: object 9 properties: 10 quux: 11 $ref: '#/components/schemas/Quux' 12 Bar: 13 type: object 14 properties: 15 bar: 16 $ref: '#/components/schemas/Bar' 17 baz: 18 $ref: '#/components/schemas/Baz' 19 Baz: 20 type: object 21 properties: 22 quux: 23 $ref: '#/components/schemas/Quux' 24 Qux: 25 discriminator: 26 propertyName: type 27 mapping: 28 array: '#/components/schemas/Foo' 29 struct: '#/components/schemas/Corge' 30 oneOf: 31 - $ref: '#/components/schemas/Corge' 32 - $ref: '#/components/schemas/Foo' 33 Quux: 34 type: object 35 properties: 36 qux: 37 $ref: '#/components/schemas/Qux' 38 Corge: 39 type: object 40 properties: 41 baz: 42 type: array 43 items: 44 $ref: '#/components/schemas/Baz'