We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e1de99 commit 562b45bCopy full SHA for 562b45b
2 files changed
docs/guide/exports/sorbus.md
@@ -54,7 +54,7 @@ export const InvoiceSchema = z.object({
54
55
export const InvoiceCreatePayloadSchema = z.object({
56
number: z.string(),
57
- status: StatusSchema.nullable().optional(),
+ status: StatusSchema.nullable().default(null),
58
});
59
60
// TypeScript types
docs/guide/exports/zod.md
@@ -57,8 +57,8 @@ export const InvoiceSchema = z.object({
// Payload schema (inner fields)
61
- issuedOn: z.iso.date().nullable().optional(),
+ issuedOn: z.iso.date().nullable().default(null),
62
63
64
// Request body schema (with root key wrapper)
0 commit comments