Skip to content

Commit 19ab5ac

Browse files
committed
swagger 수정
1 parent 161eee6 commit 19ab5ac

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

src/matching/matching.swagger.ts

+3-13
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {
33
ApiBadRequestResponse,
44
ApiInternalServerErrorResponse,
55
ApiNotFoundResponse,
6+
ApiOkResponse,
67
ApiOperation,
78
} from '@nestjs/swagger';
89
import { BaseSwaggerDecorator } from 'nestjs-swagger-decorator';
@@ -38,20 +39,9 @@ export function CreateMatchingSwagger(apiSummary: string) {
3839
export function PatchMatchingRequestStatusSwagger(apiSummary: string) {
3940
return BaseSwaggerDecorator(
4041
{ summary: apiSummary },
42+
[],
4143
[
42-
{
43-
statusCode: 200,
44-
responseOptions: [
45-
{
46-
model: BaseResponse,
47-
exampleTitle: '성공',
48-
exampleDescription: '성공했을 때 값',
49-
},
50-
],
51-
baseResponseDto: BaseResponse,
52-
},
53-
],
54-
[
44+
ApiOkResponse({ description: '성공', type: BaseResponse }),
5545
ApiBadRequestResponse({ description: 'Bad Request' }),
5646
ApiNotFoundResponse({ description: '해당 유저가 존재하지 않습니다.' }),
5747
ApiInternalServerErrorResponse({ description: 'Internal Server Error' }),

0 commit comments

Comments
 (0)