diff --git a/sdk/schema/ScheduleEntry.py b/sdk/schema/ScheduleEntry.py index dae5987..da36a13 100644 --- a/sdk/schema/ScheduleEntry.py +++ b/sdk/schema/ScheduleEntry.py @@ -39,12 +39,13 @@ class ScheduleEntry(SQLModel): class Config: json_schema_extra = { "example": { + "id" : "SCHD-ENGL-1123-2024-10-10924-0", "type" : "Lecture", - "days" : "M-W----", - "time" : "1030-1220", + "days" : "-T-R---", + "time" : "1530-1720", "start": None, "end" : None, - "room": "A136B", + "room": "A306", "instructor": "Bob Ross" } } diff --git a/sdk/schema/Section.py b/sdk/schema/Section.py index d28012c..48c18bc 100644 --- a/sdk/schema/Section.py +++ b/sdk/schema/Section.py @@ -60,5 +60,29 @@ class SectionAPI(SectionBase): schedule: List["ScheduleEntryAPI"] = [] + class Config: + json_schema_extra = { + "example": { + "id": "SECT-ENGL-1123-2024-10-10924", + "crn": 10924, + "RP": "P", + "seats": "4", + "waitlist": None, + "section": "001", + "credits": 3.0, + "abbreviated_title": "Intro to Academic Writing", + "add_fees": None, + "rpt_limit": 2, + "notes": None, + "subject": "ENGL", + "course_code": "1123", + "year": 2024, + "term": 10, + "schedule": [ + ScheduleEntryAPI.Config.json_schema_extra["example"] + ] + } + } + # course_id: Optional[str] = Field(default=None, foreign_key="sectiondb.id") # course: Optional["CourseAPIExt"] = Relationship(back_populates="schedule") \ No newline at end of file