Files
web/server/routers/contentstack/contentPage/output.ts

21 lines
452 B
TypeScript

import { z } from "zod"
import { Lang } from "@/constants/languages"
export const validateContentPageSchema = z.object({
content_page: z.object({
title: z.string(),
header: z.object({
heading: z.string(),
preamble: z.string(),
}),
hero_image: z.any().nullable(),
system: z.object({
uid: z.string(),
locale: z.nativeEnum(Lang),
created_at: z.string(),
updated_at: z.string(),
}),
}),
})