Skip to content

Commit 8b68b00

Browse files
committed
Merge branch 'kl/scrum-41-ai-timetable-generate' of https://github.com/UTSC-CSCC01-Software-Engineering-I/term-group-project-c01w25-project-course-matrix into kl/scrum-41-ai-timetable-generate
2 parents 048ba31 + 1c048b2 commit 8b68b00

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

course-matrix/backend/src/models/timetable-form.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const CourseSchema = z.object({
5656
.max(8, "Invalid course code")
5757
.min(1, "Course code is required")
5858
.describe(
59-
"The course code. Formatted like: CSCA08H3. Course codes cannot be provided without the H3 at the end."
59+
"The course code. Formatted like: CSCA08H3. Course codes cannot be provided without the H3 at the end.",
6060
),
6161
name: z.string().describe("The name of the course"),
6262
});
@@ -71,7 +71,7 @@ export const RestrictionSchema = z.object({
7171
"Days Off",
7272
])
7373
.describe(
74-
"The type of restriction being applied. Restrict before restricts all times before 'endTime', Restrict Before restricts all times after 'startTime', Restrict Between restricts all times between 'startTime' and 'endTime', Restrict Day restricts the entirety of each day in field 'days', and Days Off enforces as least 'numDays' days off per week."
74+
"The type of restriction being applied. Restrict before restricts all times before 'endTime', Restrict Before restricts all times after 'startTime', Restrict Between restricts all times between 'startTime' and 'endTime', Restrict Day restricts the entirety of each day in field 'days', and Days Off enforces as least 'numDays' days off per week.",
7575
),
7676
days: z
7777
.array(DayOfWeekEnum)
@@ -83,19 +83,19 @@ export const RestrictionSchema = z.object({
8383
.max(4, "Cannot block all days of the week")
8484
.optional()
8585
.describe(
86-
"If type is Days Off, then this field is used and describes min number of days off per week. For example, if set to 2, and 'type' is Days Off, then this means we want at least 2 days off per week."
86+
"If type is Days Off, then this field is used and describes min number of days off per week. For example, if set to 2, and 'type' is Days Off, then this means we want at least 2 days off per week.",
8787
),
8888
startTime: z
8989
.string()
9090
.optional()
9191
.describe(
92-
"If type is Restrict After, or Restrict Between, then this field describes the start time of the restricted time. Formatted HH:mm:ss"
92+
"If type is Restrict After, or Restrict Between, then this field describes the start time of the restricted time. Formatted HH:mm:ss",
9393
),
9494
endTime: z
9595
.string()
9696
.optional()
9797
.describe(
98-
"If type is Restrict Before, or Restrict Between, then this field describes the end time of the restricted time. Formatted HH:mm:ss"
98+
"If type is Restrict Before, or Restrict Between, then this field describes the end time of the restricted time. Formatted HH:mm:ss",
9999
),
100100
disabled: z
101101
.boolean()

0 commit comments

Comments
 (0)