File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
apis/src/main/kotlin/org/yapp/apis/auth/dto/request Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package org.yapp.apis.auth.dto.request
22
33import io.swagger.v3.oas.annotations.media.Schema
44import jakarta.validation.constraints.NotBlank
5+ import jakarta.validation.constraints.NotNull
56import org.yapp.apis.auth.dto.response.UserCreateInfoResponse
67import org.yapp.apis.util.NicknameGenerator
78import 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(
Original file line number Diff line number Diff line change 11package org.yapp.apis.auth.dto.request
22
33import io.swagger.v3.oas.annotations.media.Schema
4- import jakarta.validation.constraints.NotBlank
4+ import jakarta.validation.constraints.NotNull
55import org.yapp.apis.auth.dto.response.CreateUserResponse
66import org.yapp.apis.auth.dto.response.UserAuthInfoResponse
77import 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
Original file line number Diff line number Diff line change 11package org.yapp.apis.auth.dto.request
22
33import io.swagger.v3.oas.annotations.media.Schema
4- import jakarta.validation.constraints.NotBlank
54import jakarta.validation.constraints.NotEmpty
65import jakarta.validation.constraints.NotNull
76import java.util.UUID
You can’t perform that action at this time.
0 commit comments