fix: align placeholder handling for all hotel images in zod

This commit is contained in:
Christel Westerberg
2024-12-17 10:20:26 +01:00
parent 0c62cb6d96
commit 8328493289
6 changed files with 47 additions and 82 deletions

View File

@@ -1,14 +1,9 @@
import { z } from "zod"
import { imageMetaDataSchema, imageSizesSchema } from "./image"
import { imageSchema } from "./image"
const roomContentSchema = z.object({
images: z.array(
z.object({
metaData: imageMetaDataSchema,
imageSizes: imageSizesSchema,
})
),
images: z.array(imageSchema),
texts: z.object({
descriptions: z.object({
short: z.string().optional(),