Skip to content

Commit

Permalink
feat/#507: 로그인 예외 응답 문서 클래스명 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
LJH098 authored and hwangdaesun committed Oct 9, 2024
1 parent 092bead commit c2c7254
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import com.gaebaljip.exceed.application.port.in.auth.AuthUsecase;
import com.gaebaljip.exceed.common.ApiResponse;
import com.gaebaljip.exceed.common.ApiResponseGenerator;
import com.gaebaljip.exceed.common.docs.auth.AuthExceptionDocs;
import com.gaebaljip.exceed.common.docs.auth.LoginExceptionDocs;
import com.gaebaljip.exceed.common.dto.LoginResponseDTO;
import com.gaebaljip.exceed.common.security.AuthConstants;
import com.gaebaljip.exceed.common.swagger.ApiErrorExceptionsExample;
Expand All @@ -39,7 +39,7 @@ public class AuthController {

@Operation(summary = "로그인", description = "로그인")
@PostMapping("/auth/login")
@ApiErrorExceptionsExample(AuthExceptionDocs.class)
@ApiErrorExceptionsExample(LoginExceptionDocs.class)
public ApiResponse<ApiResponse.CustomBody<Void>> login(
@RequestBody @Valid LoginRequest loginRequest, HttpServletResponse response) {
LoginResponseDTO loginResponseDTO = authUsecase.execute(loginRequest);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import com.gaebaljip.exceed.common.swagger.SwaggerExampleExceptions;

@ExceptionDoc
public class AuthExceptionDocs implements SwaggerExampleExceptions {
public class LoginExceptionDocs implements SwaggerExampleExceptions {

@ExplainError("비밀번호가 일치하지 않을 때")
public EatCeedException 비밀번호가_일치하지_않을_때 = PasswordMismatchException.EXECPTION;
Expand Down

0 comments on commit c2c7254

Please sign in to comment.