Files
web/apps/scandic-web/server/routers/hotels/schemas/location/city.ts
Erik Tiekstra efbed53be4 fix(SW-2921): Fixed issue with countryName missing from locations response
* fix(SW-2921): Added more correct cache key to locations endpoint

Approved-by: Joakim Jäderberg
Approved-by: Linus Flood
2025-05-27 11:46:59 +00:00

14 lines
388 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(""),
isPublished: z.boolean(),
}),
countryName: z.string().optional().default(""),
id: z.string().optional().default(""),
type: z.literal("cities"),
})