14 lines
399 B
TypeScript
14 lines
399 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().default(false),
|
|
}),
|
|
country: z.string().optional().default(""),
|
|
id: z.string().optional().default(""),
|
|
type: z.literal("cities"),
|
|
})
|