fix: remove optional from page breadrcrumbs validation

This commit is contained in:
Matilda Landström
2024-06-05 10:50:05 +02:00
parent 79d8a19d26
commit 48615c939f

View File

@@ -53,10 +53,8 @@ export const validateLoyaltyPageBreadcrumbsRefsContentstackSchema = z.object({
}) })
const page = z.object({ const page = z.object({
web: z web: z.object({
.object({ breadcrumbs: z.object({
breadcrumbs: z
.object({
title: z.string(), title: z.string(),
parentsConnection: z.object({ parentsConnection: z.object({
edges: z.array( edges: z.array(
@@ -76,10 +74,8 @@ const page = z.object({
}) })
), ),
}), }),
}) }),
.optional(), }),
})
.optional(),
system: z.object({ system: z.object({
uid: z.string(), uid: z.string(),
}), }),