Skip to content

Commit

Permalink
fix: News 컬럼 nullable 제약 수정, API 문서 필수 여부 수정 (#14) (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
seokjin8678 authored Dec 12, 2023
1 parent bb97160 commit 5845af1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ import jakarta.persistence.Embeddable

@Embeddable
data class NewsInformation(
@Column(name = "title", nullable = true)
val title: String?,
@Column(name = "title", nullable = false)
val title: String,

@Column(name = "excerpt", nullable = true)
val excerpt: String?,
) {

companion object {

val EMPTY = NewsInformation(null, null)
val EMPTY = NewsInformation("", null)
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class NewsControllerV1Test(
requestBody(
"newsType" type ENUM(NewsType::class) means "뉴스 타입",
"title" type STRING means "뉴스 제목",
"excerpt" type STRING means "뉴스 발췌",
"excerpt" type STRING means "뉴스 발췌" isOptional true,
"publishedAt" type ZONEDDATETIME means "뉴스 발행 시간",
"originId" type NUMBER means "원본 뉴스 식별자",
"originUrl" type STRING means "원본 뉴스의 URL",
Expand Down

0 comments on commit 5845af1

Please sign in to comment.