ToolJet/plugins/packages/slack/lib/operations.json
Gandharv 27c91a008a
Add json schema for vscode autocomplete (#1962)
* add json schema

* update schema

* update link
2022-01-27 10:55:16 +05:30

39 lines
No EOL
945 B
JSON

{
"$schema": "https://raw.githubusercontent.com/ToolJet/ToolJet/develop/plugins/schemas/operations.schema.json",
"title": "Slack datasource",
"description": "A schema defining Slack datasource",
"type": "api",
"defaults": {},
"properties": {
"mode": {
"label": "",
"key": "mode",
"type": "dropdown-component-flip",
"description": "Single select dropdown for mode",
"list": [
{
"name": "List members",
"value": "list_users"
},
{
"name": "Send message",
"value": "send_message"
}
]
},
"send_message": {
"channel": {
"label": "Channel",
"key": "channel",
"type": "codehinter",
"description": "Enter channel"
},
"message": {
"label": "Message",
"key": "message",
"type": "codehinter",
"description": "Enter message"
}
}
}
}