fork of hey-api/openapi-ts because I need some additional things
at main 61 lines 1.3 kB view raw
1openapi: 3.1.0 2info: 3 title: OpenAPI 3.1.0 enum inline example 4 version: '1' 5paths: 6 /foo: 7 get: 8 responses: 9 '200': 10 description: OK 11 content: 12 application/json: 13 schema: 14 type: object 15 properties: 16 foo: 17 type: string 18 enum: 19 - foo 20 - bar 21 post: 22 responses: 23 '200': 24 description: 'OK' 25 content: 26 application/json: 27 schema: 28 type: object 29 properties: 30 foo: 31 type: string 32 enum: 33 - baz 34 put: 35 responses: 36 '200': 37 description: 'OK' 38 content: 39 application/json: 40 schema: 41 $ref: '#/components/schemas/Baz' 42components: 43 schemas: 44 Foo: 45 properties: 46 type: 47 enum: 48 - foo 49 - bar 50 type: string 51 type: object 52 Bar: 53 properties: 54 type: 55 $ref: '#/components/schemas/Baz' 56 type: object 57 Baz: 58 enum: 59 - qux 60 - quux 61 type: string