Skip to content

Commit

Permalink
fix: page can have null relationships (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
EHadoux authored Nov 10, 2023
1 parent 48ad5a4 commit cac65f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/BlockStruct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ const PageBlockSchema = BlockBaseSchema.extend({
Relationships: object({
Type: literal('CHILD'),
Ids: string().array(),
}).array(),
})
.array()
.nullable(),
}).omit({ Confidence: true });
export type PageBlock = zinfer<typeof PageBlockSchema>;

Expand Down

0 comments on commit cac65f9

Please sign in to comment.