Skip to content

Commit d20565c

Browse files
committed
[REFACTOR] swagger 수정
1 parent 53db6ec commit d20565c

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/common/swagger/chat.json

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"/api/chatrooms": {
44
"post": {
55
"summary": "채팅방 생성",
6-
"description": "consumerId, artistId, commissionId로 채팅방을 생성합니다.",
6+
"description": "userId, artistId, commissionId로 채팅방을 생성합니다.",
77
"security": [
88
{
99
"bearerAuth": []
@@ -17,11 +17,10 @@
1717
"schema": {
1818
"type": "object",
1919
"properties": {
20-
"consumerId": { "type": "integer", "example": 1 },
2120
"artistId": { "type": "integer", "example": 2 },
2221
"commissionId": { "type": "integer", "example": 3 }
2322
},
24-
"required": ["consumerId", "artistId", "commissionId"]
23+
"required": ["userId", "artistId", "commissionId"]
2524
}
2625
}
2726
}
@@ -40,11 +39,10 @@
4039
"type": "object",
4140
"properties": {
4241
"id": { "type": "string", "example": "1" },
43-
"consumerId": { "type": "string", "example": "1" },
4442
"artistId": { "type": "string", "example": "2" },
4543
"commissionId": { "type": "string", "example": "3" },
4644
"hiddenArtist": { "type": "boolean", "example": false },
47-
"hiddenConsumer": { "type": "boolean", "example": false },
45+
"hiddenUser": { "type": "boolean", "example": false },
4846
"createdAt": { "type": "string", "format": "date-time", "example": "2025-08-07T15:35:42.375Z" }
4947
}
5048
}
@@ -179,8 +177,8 @@
179177
},
180178
"userType": {
181179
"type": "string",
182-
"enum": ["consumer", "artist"],
183-
"example": "consumer"
180+
"enum": ["user", "artist"],
181+
"example": "user"
184182
}
185183
},
186184
"required": ["chatroomIds", "userType"]
@@ -204,7 +202,7 @@
204202
"type": "object",
205203
"properties": {
206204
"errorCode": { "type": "string", "example": "C001" },
207-
"reason": { "type": "string", "example": "userType은 'consumer' 또는 'artist'여야 합니다." },
205+
"reason": { "type": "string", "example": "userType은 'user' 또는 'artist'여야 합니다." },
208206
"data": { "type": "object", "example": {} }
209207
}
210208
},

0 commit comments

Comments
 (0)