Add header info file for Nightbot
This commit is contained in:
parent
dc767d3155
commit
543b9be2c1
1 changed files with 21 additions and 0 deletions
21
src/schemas/nightbot.ts
Normal file
21
src/schemas/nightbot.ts
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import Joi from "joi";
|
||||
|
||||
export const nightbotCustomHeadersSchema = Joi.object({
|
||||
"nightbot-response-url": Joi
|
||||
.string()
|
||||
.uri({ scheme: `https` })
|
||||
.optional(),
|
||||
"nightbot-user": Joi
|
||||
.string()
|
||||
.optional(),
|
||||
"nightbot-channel": Joi
|
||||
.string()
|
||||
.optional(),
|
||||
})
|
||||
.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