fix(SW-2921): Moved countryName to attributes in locations schema * fix(SW-2921): Moved countryName to attributes in locations schema Approved-by: Linus Flood
14 lines
390 B
TypeScript
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"),
|
|
})
|