Merged
Conversation
ZaMan-O
approved these changes
Mar 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
서버 PR #211의 학생 조회 API 변경사항을 반영하고, 재학 상태 필터링을 컴파일 타임에 구조적으로 보장하는 Type-State DSL(
EnrollmentFilter)을 도입합니다.기존의
isGraduated단일 파라미터를 제거하고,onlyEnrolled/includeGraduates/includeWithdrawn세 파라미터로 세분화된 필터링을 지원합니다. 우선순위를 위반하는 파라미터 조합(예:onlyEnrolled=true+includeGraduates=true)은 타입 시스템을 통해 컴파일 타임에 방지됩니다.Changes
model/EnrollmentFilter.java신규 추가 —OnlyEnrolled/Detailed두 경로로 분리된 Type-State DSLclient/StudentApi.java—isGraduate필드·빌더·getter 제거,enrollmentFilter(EnrollmentFilter)추가client/StudentApiImpl.java—isGraduated직렬화 로직을EnrollmentFilter.applyToParams()위임으로 교체build.gradle.kts— 버전1.1.1→1.2.0Type of Change
Checklist
Breaking Change 마이그레이션 가이드
Before (1.1.1)
After (1.2.0)
EnrollmentFilter.onlyEnrolled()에는includeGraduates()/includeWithdrawn()메서드가 존재하지 않으므로, 우선순위를 위반하는 조합은 컴파일 에러로 방지됩니다.Related Issues
Closes #