Home / Function/ image.schema() — astro Function Reference

image.schema() — astro Function Reference

Architecture documentation for the image.schema() function in content.config.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  0bcc6fdb_4a08_790c_d443_ae25cda62206["image.schema()"]
  bdce0b69_15fc_037c_b5db_04900ef459bd["content.config.ts"]
  0bcc6fdb_4a08_790c_d443_ae25cda62206 -->|defined in| bdce0b69_15fc_037c_b5db_04900ef459bd
  style 0bcc6fdb_4a08_790c_d443_ae25cda62206 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/test/fixtures/data-collections-schema/src/content.config.ts lines 34–40

	schema: ({ image }) => z.object({
		homepage: z.object({
			greeting: z.string(),
			preamble: z.string(),
			image: image(),
		})
	}),

Subdomains

Frequently Asked Questions

What does image.schema() do?
image.schema() is a function in the astro codebase, defined in packages/astro/test/fixtures/data-collections-schema/src/content.config.ts.
Where is image.schema() defined?
image.schema() is defined in packages/astro/test/fixtures/data-collections-schema/src/content.config.ts at line 34.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free