Skip to content

[fix] 포스트 제목 최대 길이 15자에서 40자로 수정#99

Merged
k3vin7 merged 1 commit intomainfrom
fix/post
Mar 6, 2026
Merged

[fix] 포스트 제목 최대 길이 15자에서 40자로 수정#99
k3vin7 merged 1 commit intomainfrom
fix/post

Conversation

@k3vin7
Copy link
Contributor

@k3vin7 k3vin7 commented Mar 6, 2026

Summary

  • PostCreateDto, PostUpdateDto의 title @Size(max) 제한을 15 → 40으로 변경

@gemini-code-assist
Copy link

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 PR은 게시물 제목의 최대 길이를 늘려 사용자가 더 길고 설명적인 제목을 사용할 수 있도록 합니다. 이는 콘텐츠 생성에 더 큰 유연성을 제공하고, 제목이 너무 짧아 표현이 제한되는 문제를 해결합니다.

Highlights

  • 게시물 제목 길이 확장: PostCreateDtoPostUpdateDto에서 게시물 제목의 최대 길이를 15자에서 40자로 확장했습니다.
  • 유효성 검사 메시지 업데이트: 제목 유효성 검사 메시지가 업데이트된 최대 길이를 반영하도록 수정되었습니다.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • src/main/java/com/daramg/server/post/dto/PostCreateDto.kt
    • title 필드의 @Size 어노테이션을 15자에서 40자로 업데이트했습니다.
  • src/main/java/com/daramg/server/post/dto/PostUpdateDto.kt
    • title 필드의 @Size 어노테이션을 15자에서 40자로 업데이트했습니다.
Activity
  • 아직 인간 활동이 없습니다.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@k3vin7 k3vin7 merged commit 758f1cf into main Mar 6, 2026
1 check failed
@k3vin7 k3vin7 deleted the fix/post branch March 6, 2026 13:29
Copy link

@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

포스트 제목의 최대 길이를 15자에서 40자로 늘리는 변경 사항을 확인했습니다. DTO의 유효성 검사 어노테이션은 잘 수정되었습니다. 다만, 이 변경 사항과 관련된 API 문서도 업데이트가 필요합니다. src/test/java/com/daramg/server/post/presentation/PostControllerTest.java 파일에서 restdocs를 통해 생성되는 API 문서의 title 필드 설명이 여러 곳에서 여전히 '15자 이내'로 되어 있습니다. 이 부분을 '40자 이내'로 수정하여 API 문서와 실제 유효성 검사 규칙이 일치하도록 해야 합니다.


sealed class PostUpdateDto (
@get:Size(max=15, message = "제목은 15자를 초과할 수 없습니다")
@get:Size(max=40, message = "제목은 40자를 초과할 수 없습니다")

Choose a reason for hiding this comment

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

medium

코드 일관성 및 가독성을 위해 @Size 어노테이션의 파라미터에서 = 연산자 양쪽에 공백을 추가하는 것을 권장합니다. PostCreateDto.kt 파일에서는 공백이 사용되고 있으므로, 일관성을 맞추는 것이 좋습니다.

Suggested change
@get:Size(max=40, message = "제목은 40자를 초과할 수 없습니다")
@get:Size(max = 40, message = "제목은 40자를 초과할 수 없습니다")

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