feat(schema): make version update releasedAt date nullable

This commit is contained in:
Lars Hampe 2024-10-20 14:19:37 +02:00
parent a0baad534e
commit 96a693ce34

View File

@ -9,7 +9,7 @@ export const VersionUpdateInput = z
.enum(['draft', 'review', 'published'])
.default('draft')
.optional(),
releasedAt: z.date().or(z.string()).optional(),
releasedAt: z.date().or(z.string()).optional().nullable(),
})
.openapi({})
export const VersionUpdateParams = z