fork of hey-api/openapi-ts because I need some additional things
at feat/skip-token 64 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 - FooBar 22 - fooBar 23 - foo bar 24 post: 25 responses: 26 '200': 27 description: 'OK' 28 content: 29 application/json: 30 schema: 31 type: object 32 properties: 33 foo: 34 type: string 35 enum: 36 - baz 37 put: 38 responses: 39 '200': 40 description: 'OK' 41 content: 42 application/json: 43 schema: 44 $ref: '#/components/schemas/Baz' 45components: 46 schemas: 47 Foo: 48 properties: 49 type: 50 enum: 51 - foo 52 - bar 53 type: string 54 type: object 55 Bar: 56 properties: 57 type: 58 $ref: '#/components/schemas/Baz' 59 type: object 60 Baz: 61 enum: 62 - qux 63 - quux 64 type: string