fix: remove optional from page breadrcrumbs validation
This commit is contained in:
@@ -53,33 +53,29 @@ export const validateLoyaltyPageBreadcrumbsRefsContentstackSchema = z.object({
|
|||||||
})
|
})
|
||||||
|
|
||||||
const page = z.object({
|
const page = z.object({
|
||||||
web: z
|
web: z.object({
|
||||||
.object({
|
breadcrumbs: z.object({
|
||||||
breadcrumbs: z
|
title: z.string(),
|
||||||
.object({
|
parentsConnection: z.object({
|
||||||
title: z.string(),
|
edges: z.array(
|
||||||
parentsConnection: z.object({
|
z.object({
|
||||||
edges: z.array(
|
node: z.object({
|
||||||
z.object({
|
web: z.object({
|
||||||
node: z.object({
|
breadcrumbs: z.object({
|
||||||
web: z.object({
|
title: z.string(),
|
||||||
breadcrumbs: z.object({
|
|
||||||
title: z.string(),
|
|
||||||
}),
|
|
||||||
}),
|
|
||||||
system: z.object({
|
|
||||||
locale: z.nativeEnum(Lang),
|
|
||||||
uid: z.string(),
|
|
||||||
}),
|
|
||||||
url: z.string(),
|
|
||||||
}),
|
}),
|
||||||
})
|
}),
|
||||||
),
|
system: z.object({
|
||||||
}),
|
locale: z.nativeEnum(Lang),
|
||||||
})
|
uid: z.string(),
|
||||||
.optional(),
|
}),
|
||||||
})
|
url: z.string(),
|
||||||
.optional(),
|
}),
|
||||||
|
})
|
||||||
|
),
|
||||||
|
}),
|
||||||
|
}),
|
||||||
|
}),
|
||||||
system: z.object({
|
system: z.object({
|
||||||
uid: z.string(),
|
uid: z.string(),
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user