fork of hey-api/openapi-ts because I need some additional things
1openapi: 3.0.3
2info:
3 title: Schema Name Transform Test
4 version: 1.0.0
5paths:
6 /users:
7 get:
8 summary: Get users
9 responses:
10 '200':
11 description: Success
12 content:
13 application/json:
14 schema:
15 $ref: '#/components/schemas/User_v1_0_0_User'
16 /posts:
17 post:
18 summary: Create post
19 requestBody:
20 content:
21 application/json:
22 schema:
23 $ref: '#/components/schemas/Post_v2_1_3_Post'
24 responses:
25 '201':
26 description: Created
27 content:
28 application/json:
29 schema:
30 $ref: '#/components/schemas/Post_v2_1_3_Post'
31components:
32 schemas:
33 User_v1_0_0_User:
34 type: object
35 properties:
36 id:
37 type: string
38 name:
39 type: string
40 profile:
41 $ref: '#/components/schemas/UserProfile_v1_0_0_UserProfile'
42 UserProfile_v1_0_0_UserProfile:
43 type: object
44 properties:
45 bio:
46 type: string
47 avatar:
48 type: string
49 Post_v2_1_3_Post:
50 type: object
51 properties:
52 id:
53 type: string
54 title:
55 type: string
56 author:
57 $ref: '#/components/schemas/User_v1_0_0_User'
58 comments:
59 type: array
60 items:
61 $ref: '#/components/schemas/Comment_v1_5_2_Comment'
62 Comment_v1_5_2_Comment:
63 type: object
64 properties:
65 id:
66 type: string
67 text:
68 type: string
69 author:
70 $ref: '#/components/schemas/User_v1_0_0_User'