Skip to content

Commit cabb1a4

Browse files
committed
docs: add required false property in swagger
1 parent 11547a1 commit cabb1a4

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/post/dto/req/myPostFilter.dto.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export class MyPostFilterDto {
88
enumName: 'PostType',
99
description: 'Type of post (FOUND or LOST)',
1010
example: PostType.FOUND,
11+
required: false,
1112
})
1213
@IsEnum(PostType)
1314
@IsOptional()

src/post/post.controller.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ export class PostController {
6969
@UseGuards(IdPGuard)
7070
async getMyPosts(
7171
@GetUser() user: User,
72-
7372
@Query() myPostFilterDto: MyPostFilterDto,
7473
): Promise<PostListDto> {
7574
return this.postService.getMyPostList(user.uuid, myPostFilterDto);

0 commit comments

Comments
 (0)