minor patches & bump deps

This commit is contained in:
undefined committed 2025-05-28 14:32:30 +08:00
1 parent 80a9c6a399
commit d9b578d56a
19 files changed
+80 -61

No files matched your search

+4 -1
View File
@@ -26,7 +26,10 @@ const ProblemSchema = Schema.object({
})),
hint: StringValue,
source: Schema.union([StringValue, Schema.string()]),
display_id: Schema.string(),
display_id: Schema.transform(
Schema.union([Schema.number(), Schema.string()]),
(value) => (typeof value === 'number' ? `P${value.toString()}` : value),
),
time_limit: Schema.union([Schema.number(), Schema.string()]).required(),
memory_limit: Schema.union([Schema.number(), Schema.string()]).required(),
spj: Schema.union([