* feat(SW-1519): Removed displayWebpage from hotel schema * feat(SW-1519): Removed gallery from hotel schema * feat(SW-1519): Removed conferencesAndMeetings from hotel schema * feat(SW-1519): Removed healthAndWellness from hotel schema * feat(SW-1519): Removed restaurantImages from hotel schema * feat(SW-1519): Removed restaurantsOverviewPage from hotel schema Approved-by: Fredrik Thorsson Approved-by: Matilda Landström
25 lines
571 B
TypeScript
25 lines
571 B
TypeScript
import { z } from "zod"
|
|
|
|
import { nullableStringValidator } from "@/utils/zod/stringValidator"
|
|
|
|
import { imageSchema } from "../image"
|
|
|
|
const descriptionSchema = z
|
|
.object({
|
|
medium: nullableStringValidator,
|
|
short: nullableStringValidator,
|
|
})
|
|
.nullish()
|
|
|
|
const textsSchema = z.object({
|
|
descriptions: descriptionSchema,
|
|
facilityInformation: nullableStringValidator,
|
|
meetingDescription: descriptionSchema,
|
|
surroundingInformation: nullableStringValidator,
|
|
})
|
|
|
|
export const hotelContentSchema = z.object({
|
|
images: imageSchema,
|
|
texts: textsSchema,
|
|
})
|