Make the Nightbot headers required when included
This commit is contained in:
parent
78200a680d
commit
5b5ad11676
1 changed files with 3 additions and 11 deletions
|
|
@ -3,19 +3,11 @@ import Joi from "joi";
|
|||
export const nightbotCustomHeadersSchema = Joi.object({
|
||||
"nightbot-response-url": Joi
|
||||
.string()
|
||||
.uri({ scheme: `https` })
|
||||
.optional(),
|
||||
.uri({ scheme: `https` }),
|
||||
"nightbot-user": Joi
|
||||
.string()
|
||||
.optional(),
|
||||
.string(),
|
||||
"nightbot-channel": Joi
|
||||
.string()
|
||||
.optional(),
|
||||
.string(),
|
||||
})
|
||||
.and(
|
||||
"nightbot-response-url",
|
||||
"nightbot-user",
|
||||
"nightbot-channel",
|
||||
)
|
||||
.meta({ className: `nightbotCustomHeaders` })
|
||||
.description(`The custom headers Nightbot makes requests with`);
|
||||
Loading…
Add table
Add a link
Reference in a new issue