From 1c1c80828938735797ee250ad7595c5ac552e683 Mon Sep 17 00:00:00 2001 From: Jacob Wood Date: Fri, 6 Dec 2024 20:38:15 +0700 Subject: [PATCH] Fix: Resolve Zod schema JSON conversion error in example by adding default empty array for allergies --- sites/docs/content/quick-start.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sites/docs/content/quick-start.md b/sites/docs/content/quick-start.md index 3ba24a3..2f84d63 100644 --- a/sites/docs/content/quick-start.md +++ b/sites/docs/content/quick-start.md @@ -38,7 +38,7 @@ export const schema = z.object({ theme: z.enum(themes).default("light"), language: z.enum(languages).default("en"), marketingEmails: z.boolean().default(true), - allergies: z.array(z.enum(allergies)), + allergies: z.enum(allergies).array().default([]), }); ```