Closed roodboi closed 9 months ago
Latest commit: 7f3c867b07afdcb24113a83887e01d715847e15d
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
island-ai-docs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jan 21, 2024 11:21pm |
adding support for zod .default()
const schema = z.object({ someString: z.string().default("default string"), someNumber: z.number().default(420), someBoolean: z.boolean().default(true) })
parsing with this schema and returning an empty obj will now return ->
{ someString: "default string", someNumber: 420, someBoolean: true, }