Files
web/apps/scandic-web/server/routers/hotels/schemas/location/city.ts
Erik Tiekstra 42701739a0 Merged in fix/SW-2921-countryName (pull request #2249)
fix(SW-2921): Moved countryName to attributes in locations schema

* fix(SW-2921): Moved countryName to attributes in locations schema


Approved-by: Linus Flood
2025-05-28 08:45:03 +00:00

14 lines
390 B
TypeScript

import { z } from "zod"
export const locationCitySchema = z.object({
attributes: z.object({
cityIdentifier: z.string().optional(),
keyWords: z.array(z.string()).optional(),
name: z.string().optional().default(""),
countryName: z.string().optional().default(""),
isPublished: z.boolean(),
}),
id: z.string().optional().default(""),
type: z.literal("cities"),
})