mirror of
https://github.com/hexastack/hexabot
synced 2025-03-11 14:50:14 +00:00
fix(api): schema support attachment_id nullable value
This commit is contained in:
parent
99935e116a
commit
b59aa2b2a9
@ -71,7 +71,7 @@ export function isValidMessage(msg: any) {
|
||||
.required(),
|
||||
payload: Joi.object().keys({
|
||||
url: Joi.string().uri(),
|
||||
attachment_id: Joi.string(),
|
||||
attachment_id: Joi.string().allow(null),
|
||||
}),
|
||||
}),
|
||||
elements: Joi.boolean(),
|
||||
|
Loading…
Reference in New Issue
Block a user