55components :
66 schemas :
77 Address :
8- &a1
98 type : object
109 required :
1110 - name
@@ -17,45 +16,46 @@ components:
1716 minimum : 1000
1817 maximum : 9999
1918 Id :
20- &a3
2119 type : string
2220 User :
23- &a2
21+ &a1
2422 type : object
2523 required :
2624 - name
2725 additionalProperties : false
2826 properties :
2927 name :
3028 type : string
31- address : *a1
29+ address :
30+ $ref : " #/components/schemas/Address"
3231 age :
3332 type : integer
3433 format : int32
3534 minimum : 0
3635 UpdateUserRequest :
3736 type : object
38- required :
39- - name
37+ minProperties : 1
4038 additionalProperties : false
4139 properties :
42- name :
43- type : string
44- address : *a1
40+ address :
41+ $ref : " #/components/schemas/Address"
4542 age :
4643 type : integer
4744 format : int32
4845 minimum : 0
46+ CreateUserRequest : *a1
4947 Users :
5048 type : array
5149 uniqueItems : true
52- items : *a2
50+ items :
51+ $ref : " #/components/schemas/User"
5352 parameters :
5453 UserId :
5554 name : userId
5655 in : path
5756 required : true
58- schema : *a3
57+ schema :
58+ $ref : " #/components/schemas/Id"
5959 securitySchemes :
6060 HttpBearerJwtScheme :
6161 type : http
@@ -64,9 +64,26 @@ components:
6464paths :
6565 /users :
6666 get :
67- operationId : listUsers
67+ operationId : listUsersCommand
68+ tags :
69+ - user
70+ responses :
71+ " 200 " :
72+ description : User 200 response
73+ content :
74+ application/json :
75+ schema :
76+ $ref : " #/components/schemas/Users"
77+ post :
78+ operationId : createUserCommand
6879 tags :
6980 - user
81+ requestBody :
82+ description : " "
83+ content :
84+ application/json :
85+ schema :
86+ $ref : " #/components/schemas/CreateUserRequest"
7087 responses :
7188 " 200 " :
7289 description : User 200 response
@@ -90,7 +107,7 @@ paths:
90107 operationId : deleteUserByIdCommand
91108 security :
92109 - HttpBearerJwtScheme :
93- &a4
110+ &a2
94111 - users.delete
95112 tags :
96113 - user
@@ -105,7 +122,7 @@ paths:
105122 tags :
106123 - user
107124 requestBody :
108- description : postRequestBody
125+ description : " "
109126 content :
110127 application/json :
111128 schema :
@@ -121,5 +138,5 @@ paths:
121138 - $ref : " #/components/parameters/UserId"
122139security :
123140 - HttpBearerJwtScheme : []
124- - HttpBearerJwtScheme : *a4
141+ - HttpBearerJwtScheme : *a2
125142 - {}
0 commit comments