-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swagger 업데이트 (에러코드 추가 및 글자 형식 변경) #1046
base: dev/be
Are you sure you want to change the base?
Conversation
@Size(min = 8, max = 255, message = "비밀번호는 8~16자 사이로 입력해주세요.") | ||
@Size(min = 8, max = 16, message = "비밀번호는 8~16자 사이로 입력해주세요.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ㅋㅋㅋㅋㅋㅋ
@ErrorCase(description = "입력 없는 필드 존재", exampleMessage = "카테고리 이름이 null 입니다."), | ||
@ErrorCase(description = "카테고리 이름 글자수 오류", exampleMessage = "카테고리 이름은 최대 15자까지 입력 가능합니다."), | ||
@ErrorCase(description = "카테고리 순서 값 1 미만", exampleMessage = "카테고리의 순서는 1 이상이어야 합니다."), | ||
@ErrorCase(description = "카테고리 순서 오류", exampleMessage = "순서가 잘못되었습니다."), | ||
@ErrorCase(description = "기본 카테고리 수정 또는 삭제", errorCode = ErrorCode.DEFAULT_CATEGORY, | ||
exampleMessage = "기본 카테고리는 수정 및 삭제할 수 없습니다."), | ||
@ErrorCase(description = "삭제하려는 카테고리에 템플릿이 존재", errorCode = ErrorCode.CATEGORY_HAS_TEMPLATES, | ||
exampleMessage = "템플릿이 존재하는 카테고리는 삭제할 수 없습니다."), | ||
@ErrorCase(description = "카테고리 개수가 일치하지 않음(수정되지 않은 카테고리도 모두 보내주어야 합니다.)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
에러코드 있는 애와 없는 애의 차이가 무엇인가요?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
매번 에러코드를 입력하는 것이 불편할 것 같아서 default 로 errorCode를 설정하지 않은 것들은 1101 번으로 자동 설정해놨습니다~!
⚡️ 관련 이슈
close #1030
📍주요 변경 사항
validationService.validateOrdinal(member, request);
가 무슨 역할인지 몰라서 제거했어요🎸기타
🍗 PR 첫 리뷰 마감 기한
02/07