Skip to content

Commit fb874ff

Browse files
committed
feat(Sessions): schemaを追加
1 parent f588aba commit fb874ff

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

2025/src/content/config.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,24 @@ const sponsors = defineCollection({
1515
}),
1616
});
1717

18+
const sessions = defineCollection({
19+
loader: glob({
20+
pattern: "*.toml",
21+
base: "./src/content/sessions",
22+
}),
23+
schema: z.object({
24+
session_id: z.string(),
25+
start_at: z.coerce.date(),
26+
end_at: z.coerce.date(),
27+
speaker_name: z.string(),
28+
title: z.string(),
29+
abstract: z.string(),
30+
self_introduction: z.string().optional(),
31+
}),
32+
});
33+
1834
// コレクションのエクスポート
1935
export const collections = {
2036
sponsors,
37+
sessions,
2138
};

0 commit comments

Comments
 (0)