Skip to content

Commit 1f0e273

Browse files
authored
Merge pull request #2 from themoment-team/feature/student-specialty-field
[update] 학생 전공(`specialty`) 필드 추가
2 parents ccb521b + 78b137a commit 1f0e273

4 files changed

Lines changed: 9 additions & 4 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "datagsm-openapi-sdk"
7-
version = "1.0.2"
7+
version = "1.0.3"
88
description = "Python SDK for DataGSM OpenAPI"
99
readme = "README.md"
1010
requires-python = ">=3.9"

src/datagsm_openapi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
ValidationException,
3737
)
3838

39-
__version__ = "1.0.2"
39+
__version__ = "1.0.3"
4040

4141
__all__ = [
4242
"BadRequestException",

src/datagsm_openapi/api/student.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class StudentRequest:
2121
sex: Gender filter
2222
role: Student role filter
2323
dormitory_room: Dormitory room number
24+
specialty: Specialty filter (e.g. Backend)
2425
include_withdrawn: Include withdrawn students (default: False)
2526
only_enrolled: Filter to enrolled students only, excluding GRADUATE and WITHDRAWN
2627
page: Page number (default: 0)
@@ -38,6 +39,7 @@ class StudentRequest:
3839
sex: Optional[Sex] = None
3940
role: Optional[StudentRole] = None
4041
dormitory_room: Optional[int] = None
42+
specialty: Optional[str] = None
4143
include_withdrawn: Optional[bool] = None
4244
only_enrolled: Optional[bool] = None
4345
page: int = 0
@@ -61,6 +63,7 @@ def to_params(self) -> dict[str, Optional[object]]:
6163
"sex": self.sex.value if self.sex else None,
6264
"role": self.role.value if self.role else None,
6365
"dormitoryRoom": self.dormitory_room,
66+
"specialty": self.specialty,
6467
"includeWithdrawn": self.include_withdrawn,
6568
"onlyEnrolled": self.only_enrolled,
6669
"page": self.page,

src/datagsm_openapi/models/student.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ class Student(BaseModel):
2323
class_num: Class number
2424
number: Student number within class
2525
student_number: Full student ID number
26-
major: Major (SW_DEVELOPMENT, SMART_IOT, AI)
26+
major: Department (SW_DEVELOPMENT, SMART_IOT, AI)
27+
specialty: Specialty (e.g. Backend)
2728
role: Student role (GENERAL_STUDENT, STUDENT_COUNCIL, WITHDRAWN, etc.)
2829
dormitory_floor: Dormitory floor number
2930
dormitory_room: Dormitory room number
@@ -39,7 +40,8 @@ class Student(BaseModel):
3940
class_num: int = Field(..., alias="classNum", description="Class number")
4041
number: int = Field(..., description="Student number within class")
4142
student_number: int = Field(..., alias="studentNumber", description="Full student ID number")
42-
major: Major = Field(..., description="Major")
43+
major: Major = Field(..., description="Department (SW_DEVELOPMENT, SMART_IOT, AI)")
44+
specialty: Optional[str] = Field(None, description="Specialty (e.g. Backend)")
4345
role: StudentRole = Field(..., description="Student role")
4446
dormitory_floor: Optional[int] = Field(
4547
None, alias="dormitoryFloor", description="Dormitory floor"

0 commit comments

Comments
 (0)