Skip to content

Commit 72de0bf

Browse files
author
Developer
committed
refactor(schemas): migrate from astro:content to zod imports
1 parent eb7eab3 commit 72de0bf

12 files changed

+12
-12
lines changed

src/lib/schemas/content/base-event.schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { z } from 'astro:content';
1+
import { z } from 'zod';
22
import {
33
LOCATION_VARIANT_PRESET_COMPATIBILITY,
44
type ThemePreset,

src/lib/schemas/content/content-block.schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { z } from 'astro:content';
1+
import { z } from 'zod';
22
import { SHARED_SECTION_VARIANTS } from '@/lib/theme/theme-contract';
33
import { AssetSchema } from '@/lib/schemas/content/shared.schema';
44

src/lib/schemas/content/envelope.schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { z } from 'astro:content';
1+
import { z } from 'zod';
22
import { THEME_PRESETS } from '@/lib/theme/theme-contract';
33
import { ColorTokenSchema } from '@/lib/schemas/content/shared.schema';
44

src/lib/schemas/content/family.schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { z } from 'astro:content';
1+
import { z } from 'zod';
22
import { FAMILY_LAYOUT_VARIANTS } from '@/lib/theme/theme-contract';
33
import { AssetSchema } from '@/lib/schemas/content/shared.schema';
44

src/lib/schemas/content/gallery.schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { z } from 'astro:content';
1+
import { z } from 'zod';
22
import { AssetSchema } from '@/lib/schemas/content/shared.schema';
33

44
export const gallerySchema = z

src/lib/schemas/content/gifts.schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { z } from 'astro:content';
1+
import { z } from 'zod';
22

33
export const giftsSchema = z
44
.object({

src/lib/schemas/content/hero.schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { z } from 'astro:content';
1+
import { z } from 'zod';
22
import { HERO_LAYOUT_VARIANTS, THEME_PRESETS } from '@/lib/theme/theme-contract';
33
import { AssetSchema } from '@/lib/schemas/content/shared.schema';
44

src/lib/schemas/content/itinerary.schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { z } from 'astro:content';
1+
import { z } from 'zod';
22

33
export const ITINERARY_ICON_KEYS = [
44
'waltz',

src/lib/schemas/content/location.schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { z } from 'astro:content';
1+
import { z } from 'zod';
22
import {
33
INDICATION_ICON_KEYS,
44
INDICATION_ICON_NAMES,

src/lib/schemas/content/rsvp.schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { z } from 'astro:content';
1+
import { z } from 'zod';
22

33
export const rsvpSectionStyleSchema = z
44
.object({

0 commit comments

Comments
 (0)