23 lines
540 B
TypeScript
23 lines
540 B
TypeScript
import { z } from "zod"
|
|
|
|
import { Lang } from "@/constants/languages"
|
|
|
|
import { imageVaultAssetSchema } from "../schemas/imageVault"
|
|
|
|
export const validateContentPageSchema = z.object({
|
|
content_page: z.object({
|
|
title: z.string(),
|
|
header: z.object({
|
|
heading: z.string(),
|
|
preamble: z.string(),
|
|
}),
|
|
hero_image: imageVaultAssetSchema.nullable().optional(),
|
|
system: z.object({
|
|
uid: z.string(),
|
|
locale: z.nativeEnum(Lang),
|
|
created_at: z.string(),
|
|
updated_at: z.string(),
|
|
}),
|
|
}),
|
|
})
|