Skip to content

Commit

Permalink
refactor: schema example 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
minjo-on committed Dec 9, 2024
1 parent cdccaf9 commit c606f63
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,16 @@ public record PostDetailResponse(
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
String createdAt,

@Schema(description = "이전 게시글 정보", example = "2024-11-11 15:45", requiredMode = REQUIRED, nullable = true)
@Schema(description = "이전 게시글 정보",
example = "{\"id\": 1,"
+ " \"title\": \"이전 게시글 제목\"}",
requiredMode = REQUIRED, nullable = true)
PostTitleResponse prevPost,

@Schema(description = "다음 게시글 정보", example = "2024-11-11 15:45", requiredMode = REQUIRED, nullable = true)
@Schema(description = "다음 게시글 정보",
example = "{\"id\": 1, "
+ "\"title\": \"이전 게시글 제목\"}",
requiredMode = REQUIRED, nullable = true)
PostTitleResponse nextPost

) {
Expand Down

0 comments on commit c606f63

Please sign in to comment.