blog.schema() — astro Function Reference
Architecture documentation for the blog.schema() function in content.config.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 33e2535a_ac76_13f1_bb02_9a558d777177["blog.schema()"] 92958e0c_acd6_3795_4b72_9ef611831198["content.config.ts"] 33e2535a_ac76_13f1_bb02_9a558d777177 -->|defined in| 92958e0c_acd6_3795_4b72_9ef611831198 style 33e2535a_ac76_13f1_bb02_9a558d777177 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
examples/blog/src/content.config.ts lines 9–17
schema: ({ image }) =>
z.object({
title: z.string(),
description: z.string(),
// Transform string to Date object
pubDate: z.coerce.date(),
updatedDate: z.coerce.date().optional(),
heroImage: z.optional(image()),
}),
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does blog.schema() do?
blog.schema() is a function in the astro codebase, defined in examples/blog/src/content.config.ts.
Where is blog.schema() defined?
blog.schema() is defined in examples/blog/src/content.config.ts at line 9.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free