Skip to content

feat(rest): file dto type#152

Merged
99mini merged 1 commit intomainfrom
rest/release/file-type
May 5, 2026
Merged

feat(rest): file dto type#152
99mini merged 1 commit intomainfrom
rest/release/file-type

Conversation

@99mini
Copy link
Copy Markdown
Owner

@99mini 99mini commented May 5, 2026

No description provided.

@99mini 99mini self-assigned this May 5, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request improves the Swagger documentation for the files module by applying @ApiProperty decorators to entity classes and refactoring the FilesController to utilize $ref schemas with getSchemaPath. Feedback was provided to restore previously existing JSDoc descriptions by including them in the description property of the @ApiProperty decorators to maintain documentation clarity in the Swagger UI.

Comment on lines +7 to 8
@ApiProperty({ type: Number, example: 42 })
fileCount: number;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

기존에 존재하던 JSDoc 설명이 삭제되었습니다. Swagger UI에서도 해당 설명이 노출될 수 있도록 @ApiPropertydescription 속성을 사용하는 것이 좋습니다.

Suggested change
@ApiProperty({ type: Number, example: 42 })
fileCount: number;
@ApiProperty({ type: Number, example: 42, description: '재귀적으로 탐색한 파일 수' })
fileCount: number;

Comment on lines +10 to 11
@ApiProperty({ type: Number, example: 5 })
directoryCount: number;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

기존에 존재하던 JSDoc 설명이 삭제되었습니다. Swagger UI에서도 해당 설명이 노출될 수 있도록 @ApiPropertydescription 속성을 사용하는 것이 좋습니다.

Suggested change
@ApiProperty({ type: Number, example: 5 })
directoryCount: number;
@ApiProperty({ type: Number, example: 5, description: '재귀적으로 탐색한 하위 디렉토리 수 (루트 제외)' })
directoryCount: number;

Comment on lines +13 to 14
@ApiProperty({ type: Number, example: 44 })
leafCount: number;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

기존에 존재하던 JSDoc 설명이 삭제되었습니다. Swagger UI에서도 해당 설명이 노출될 수 있도록 @ApiPropertydescription 속성을 사용하는 것이 좋습니다.

Suggested change
@ApiProperty({ type: Number, example: 44 })
leafCount: number;
@ApiProperty({ type: Number, example: 44, description: '자식이 없는 leaf 노드 수 (파일 + 빈 디렉토리)' })
leafCount: number;

Comment on lines +16 to 17
@ApiProperty({ type: Number, example: 10485760 })
totalSize: number;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

기존에 존재하던 JSDoc 설명이 삭제되었습니다. Swagger UI에서도 해당 설명이 노출될 수 있도록 @ApiPropertydescription 속성을 사용하는 것이 좋습니다.

Suggested change
@ApiProperty({ type: Number, example: 10485760 })
totalSize: number;
@ApiProperty({ type: Number, example: 10485760, description: '모든 파일 크기의 합계 (byte)' })
totalSize: number;

Comment on lines +43 to 44
@ApiProperty({ type: Number, nullable: true, example: 123 })
size: number | null;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

기존에 존재하던 JSDoc 설명이 삭제되었습니다. Swagger UI에서도 해당 설명이 노출될 수 있도록 @ApiPropertydescription 속성을 사용하는 것이 좋습니다.

Suggested change
@ApiProperty({ type: Number, nullable: true, example: 123 })
size: number | null;
@ApiProperty({ type: Number, nullable: true, example: 123, description: 'byte' })
size: number | null;

Comment on lines +49 to 50
@ApiProperty({ type: Number, nullable: true, example: 3 })
childCount: number | null;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

기존에 존재하던 JSDoc 설명이 삭제되었습니다. Swagger UI에서도 해당 설명이 노출될 수 있도록 @ApiPropertydescription 속성을 사용하는 것이 좋습니다.

Suggested change
@ApiProperty({ type: Number, nullable: true, example: 3 })
childCount: number | null;
@ApiProperty({ type: Number, nullable: true, example: 3, description: '디렉토리인 경우 직속 자식 수, 파일인 경우 null' })
childCount: number | null;

@99mini 99mini merged commit 8ce19b0 into main May 5, 2026
2 checks passed
@99mini 99mini deleted the rest/release/file-type branch May 5, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant