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

spacecraftNoBody.schema() — astro Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  812fc538_dc61_ca82_22ce_0c39f464fcf5["spacecraftNoBody.schema()"]
  6701f32e_5f47_2ad2_aaa6_e72b4a79cbcc["content.config.ts"]
  812fc538_dc61_ca82_22ce_0c39f464fcf5 -->|defined in| 6701f32e_5f47_2ad2_aaa6_e72b4a79cbcc
  style 812fc538_dc61_ca82_22ce_0c39f464fcf5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/test/fixtures/content-layer/src/content.config.ts lines 98–110

	schema: ({ image }) =>
		z.object({
			title: z.string(),
			description: z.string(),
			publishedDate: z.coerce.date(),
			tags: z.array(z.string()),
			heroImage: image().optional(),
			cat: reference('cats').default('siamese'),
			something: z
				.string()
				.optional()
				.transform((str) => ({ type: 'test', content: str })),
		}),

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free