Skip to content

Commit 1e59889

Browse files
rzatsalexanderdean
authored andcommitted
Add com.slack.sauna.commands/send_message/jsonschema/1-0-0 (close #497)
1 parent b1fd629 commit 1e59889

File tree

1 file changed

+129
-0
lines changed
  • schemas/com.slack.sauna.commands/send_message/jsonschema

1 file changed

+129
-0
lines changed
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
{
2+
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
3+
"description": "Schema for a Slack send message command",
4+
"self": {
5+
"vendor": "com.slack.sauna.commands",
6+
"name": "send_message",
7+
"format": "jsonschema",
8+
"version": "1-0-0"
9+
},
10+
"type": "object",
11+
"properties": {
12+
"text": {
13+
"type": "string"
14+
},
15+
"username": {
16+
"type": "string"
17+
},
18+
"channel": {
19+
"type": "string"
20+
},
21+
"icon_url": {
22+
"type": "string"
23+
},
24+
"icon_emoji": {
25+
"type": "string"
26+
},
27+
"link_names": {
28+
"type": "boolean"
29+
},
30+
"mrkdwn": {
31+
"type": "boolean"
32+
},
33+
"unfurl_media": {
34+
"type": "boolean"
35+
},
36+
"unfurl_links": {
37+
"type": "boolean"
38+
},
39+
"attachments": {
40+
"type": "array",
41+
"items": {
42+
"type": "object",
43+
"properties": {
44+
"fallback": {
45+
"type": "string"
46+
},
47+
"color": {
48+
"type": "string"
49+
},
50+
"pretext": {
51+
"type": "string"
52+
},
53+
"author_name": {
54+
"type": "string"
55+
},
56+
"author_link": {
57+
"type": "string"
58+
},
59+
"author_icon": {
60+
"type": "string"
61+
},
62+
"title": {
63+
"type": "string"
64+
},
65+
"title_link": {
66+
"type": "string"
67+
},
68+
"text": {
69+
"type": "string"
70+
},
71+
"fields": {
72+
"type": "array",
73+
"items": {
74+
"type": "object",
75+
"properties": {
76+
"title": {
77+
"type": "string"
78+
},
79+
"value": {
80+
"type": "string"
81+
},
82+
"short": {
83+
"type": "boolean"
84+
}
85+
},
86+
"required": [
87+
"title",
88+
"value"
89+
],
90+
"additionalProperties": false
91+
}
92+
},
93+
"image_url": {
94+
"type": "string"
95+
},
96+
"thumb_url": {
97+
"type": "string"
98+
},
99+
"footer": {
100+
"type": "string"
101+
},
102+
"footer_icon": {
103+
"type": "string"
104+
},
105+
"ts": {
106+
"type": "integer"
107+
}
108+
},
109+
"required": [
110+
"fallback"
111+
],
112+
"additionalProperties": false
113+
}
114+
}
115+
},
116+
"anyOf": [
117+
{
118+
"required": [
119+
"text"
120+
]
121+
},
122+
{
123+
"required": [
124+
"attachments"
125+
]
126+
}
127+
],
128+
"additionalProperties": false
129+
}

0 commit comments

Comments
 (0)