-
Notifications
You must be signed in to change notification settings - Fork 0
/
slack-message-schema.json
42 lines (42 loc) · 1.22 KB
/
slack-message-schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
"description": "Slack message format accepted by this service.",
"type": "object",
"required": ["text", "attachments"],
"properties": {
"text": {"type": "string"},
"attachments": {
"type": "array",
"items": {
"type": "object",
"required": ["text"],
"properties": {
"text": {"type": "string"},
"fallback": {"type": "string"},
"color": {"type": "string"},
"pretext": {"type": "string"},
"author_name": {"type": "string"},
"author_link": {"type": "string"},
"title": {"type": "string"},
"title_link": {"type": "string"},
"image_url": {"type": "string"},
"thumb_url": {"type": "string"},
"footer": {"type": "string"},
"foote_icon": {"type": "string"},
"ts": {"type": "integer"},
"fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {"type": "string"},
"value": {"type": "string"},
"short": {"type": "boolean"}
},
"required": ["title", "value"]
}
}
}
}
}
}
}