fork of hey-api/openapi-ts because I need some additional things
1openapi: 3.0.0
2info:
3 title: OpenAPI 3.0.0 discriminator mapped many example
4 version: 1
5components:
6 schemas:
7 Foo:
8 oneOf:
9 - $ref: '#/components/schemas/Bar'
10 - $ref: '#/components/schemas/Baz'
11 - $ref: '#/components/schemas/Spæcial'
12 discriminator:
13 propertyName: foo
14 mapping:
15 one: '#/components/schemas/Bar'
16 two: '#/components/schemas/Bar'
17 three: '#/components/schemas/Baz'
18 four: '#/components/schemas/Spæcial'
19 Bar:
20 type: object
21 properties:
22 foo:
23 type: string
24 enum:
25 - one
26 - two
27 Baz:
28 type: object
29 properties:
30 foo:
31 type: string
32 enum:
33 - three
34 Spæcial:
35 type: object
36 properties:
37 foo:
38 type: string
39 enum:
40 - four