diff --git a/.changeset/yellow-paws-press.md b/.changeset/yellow-paws-press.md new file mode 100644 index 0000000..413caea --- /dev/null +++ b/.changeset/yellow-paws-press.md @@ -0,0 +1,5 @@ +--- +"@everipedia/iq-utils": minor +--- + +Adds .default([]) to linkedWikis keys diff --git a/src/schema/index.ts b/src/schema/index.ts index 4e6783d..b006626 100644 --- a/src/schema/index.ts +++ b/src/schema/index.ts @@ -253,9 +253,18 @@ export const Wiki = z version: z.number().default(1), linkedWikis: z .object({ - [LinkedWikiKey.Enum.blockchains]: z.array(z.string()).nullish(), - [LinkedWikiKey.Enum.founders]: z.array(z.string()).nullish(), - [LinkedWikiKey.Enum.speakers]: z.array(z.string()).nullish(), + [LinkedWikiKey.Enum.blockchains]: z + .array(z.string()) + .nullish() + .default([]), + [LinkedWikiKey.Enum.founders]: z + .array(z.string()) + .nullish() + .default([]), + [LinkedWikiKey.Enum.speakers]: z + .array(z.string()) + .nullish() + .default([]), }) .nullish() .default({}),