feat: improve structure and error handling
This commit is contained in:
@@ -66,7 +66,7 @@ export const navigationRefsPayloadSchema = z.object({
|
||||
return input.length === 1
|
||||
},
|
||||
{
|
||||
message: `Expected navigationRefsPayloadSchema 1 all_navigation_my_pages item`,
|
||||
message: `Expected all_navigation_my_pages items to only contain 1 in navigationRefsPayloadSchema`,
|
||||
}
|
||||
),
|
||||
}),
|
||||
@@ -101,7 +101,7 @@ export const navigationPayloadSchema = z.object({
|
||||
return input.length === 1
|
||||
},
|
||||
{
|
||||
message: `Expected navigationPayloadSchema to containt 1 all_navigation_my_pages item`,
|
||||
message: `Expected all_navigation_my_pages items to only contain 1 in navigationPayloadSchema`,
|
||||
}
|
||||
),
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user