Skip to content

Commit 63a9fd4

Browse files
committed
hotfix: apis - validation 어노테이션 타입 불일치 문제 수정
1 parent fd2dbdf commit 63a9fd4

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

apis/src/main/kotlin/org/yapp/apis/auth/dto/request/FindOrCreateUserRequest.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package org.yapp.apis.auth.dto.request
22

33
import io.swagger.v3.oas.annotations.media.Schema
44
import jakarta.validation.constraints.NotBlank
5+
import jakarta.validation.constraints.NotNull
56
import org.yapp.apis.auth.dto.response.UserCreateInfoResponse
67
import org.yapp.apis.util.NicknameGenerator
78
import org.yapp.domain.user.ProviderType
@@ -34,6 +35,7 @@ data class FindOrCreateUserRequest private constructor(
3435
description = "소셜 로그인 제공자",
3536
example = "KAKAO"
3637
)
38+
@field:NotNull(message = "providerType은 필수입니다.")
3739
val providerType: ProviderType? = null,
3840

3941
@Schema(

apis/src/main/kotlin/org/yapp/apis/auth/dto/request/GenerateTokenPairRequest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package org.yapp.apis.auth.dto.request
22

33
import io.swagger.v3.oas.annotations.media.Schema
4-
import jakarta.validation.constraints.NotBlank
4+
import jakarta.validation.constraints.NotNull
55
import org.yapp.apis.auth.dto.response.CreateUserResponse
66
import org.yapp.apis.auth.dto.response.UserAuthInfoResponse
77
import org.yapp.globalutils.auth.Role
@@ -16,14 +16,14 @@ data class GenerateTokenPairRequest private constructor(
1616
description = "User ID",
1717
example = "a1b2c3d4-e5f6-7890-1234-56789abcdef0"
1818
)
19-
@field:NotBlank(message = "userId must not be null")
19+
@field:NotNull(message = "userId must not be null")
2020
val userId: UUID? = null,
2121

2222
@Schema(
2323
description = "User role",
2424
example = "USER"
2525
)
26-
@field:NotBlank(message = "role must not be null")
26+
@field:NotNull(message = "role must not be null")
2727
val role: Role? = null
2828
) {
2929

apis/src/main/kotlin/org/yapp/apis/auth/dto/request/UserBooksByIsbnsRequest.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package org.yapp.apis.auth.dto.request
22

33
import io.swagger.v3.oas.annotations.media.Schema
4-
import jakarta.validation.constraints.NotBlank
54
import jakarta.validation.constraints.NotEmpty
65
import jakarta.validation.constraints.NotNull
76
import java.util.UUID

0 commit comments

Comments
 (0)