chore(schema): optional field

This commit is contained in:
Lars Hampe 2024-10-25 19:48:33 +02:00
parent b182329146
commit a42342b99d

View File

@ -20,15 +20,17 @@ export const CommitCreateInput = z
email: z.string().email(),
date: z.string(),
}),
commiter: z.object({
name: z.string(),
email: z.string().email(),
date: z.string(),
}),
commiter: z
.object({
name: z.string(),
email: z.string().email(),
date: z.string(),
})
.optional(),
body: z.string().optional(),
}),
)
.openapi({
required: ['changelogId', 'version', 'markdown', 'releasedAt'],
required: ['changelogId', 'commit', 'subject'],
})