41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
import { z } from "zod"
|
|
|
|
import { imageSchema } from "../image"
|
|
|
|
export const hotelContentSchema = z.object({
|
|
images: imageSchema.default({
|
|
metaData: {
|
|
altText: "default image",
|
|
altText_En: "default image",
|
|
copyRight: "default image",
|
|
title: "default image",
|
|
},
|
|
imageSizes: {
|
|
large: "https://placehold.co/1280x720",
|
|
medium: "https://placehold.co/1280x720",
|
|
small: "https://placehold.co/1280x720",
|
|
tiny: "https://placehold.co/1280x720",
|
|
},
|
|
}),
|
|
restaurantsOverviewPage: z.object({
|
|
restaurantsContentDescriptionMedium: z.string().optional(),
|
|
restaurantsContentDescriptionShort: z.string().optional(),
|
|
restaurantsOverviewPageLink: z.string().optional(),
|
|
restaurantsOverviewPageLinkText: z.string().optional(),
|
|
}),
|
|
texts: z.object({
|
|
descriptions: z.object({
|
|
medium: z.string(),
|
|
short: z.string(),
|
|
}),
|
|
facilityInformation: z.string().optional(),
|
|
meetingDescription: z
|
|
.object({
|
|
medium: z.string().optional(),
|
|
short: z.string().optional(),
|
|
})
|
|
.optional(),
|
|
surroundingInformation: z.string(),
|
|
}),
|
|
})
|