mirror of
https://github.com/hexastack/hexabot
synced 2025-04-08 06:54:24 +00:00
fix: attachment validation bug
This commit is contained in:
parent
183a24198e
commit
1b2687d84d
@ -354,10 +354,12 @@ export const objectSchema = z.object({
|
||||
attachment: z
|
||||
.object({
|
||||
type: z.nativeEnum(FileType),
|
||||
payload: z.object({
|
||||
url: z.string().url().optional(),
|
||||
id: z.string().optional(),
|
||||
}),
|
||||
payload: z
|
||||
.object({
|
||||
url: z.string().url().optional(),
|
||||
id: z.string().nullable().optional(),
|
||||
})
|
||||
.optional(),
|
||||
})
|
||||
.optional(),
|
||||
elements: z.boolean().optional(),
|
||||
|
Loading…
Reference in New Issue
Block a user