chore(schema): optional field
This commit is contained in:
parent
b182329146
commit
a42342b99d
@ -20,15 +20,17 @@ export const CommitCreateInput = z
|
|||||||
email: z.string().email(),
|
email: z.string().email(),
|
||||||
date: z.string(),
|
date: z.string(),
|
||||||
}),
|
}),
|
||||||
commiter: z.object({
|
commiter: z
|
||||||
|
.object({
|
||||||
name: z.string(),
|
name: z.string(),
|
||||||
email: z.string().email(),
|
email: z.string().email(),
|
||||||
date: z.string(),
|
date: z.string(),
|
||||||
}),
|
})
|
||||||
|
.optional(),
|
||||||
body: z.string().optional(),
|
body: z.string().optional(),
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
|
||||||
.openapi({
|
.openapi({
|
||||||
required: ['changelogId', 'version', 'markdown', 'releasedAt'],
|
required: ['changelogId', 'commit', 'subject'],
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user