{
  "$id": "http://unpkg.com/@nju33/json-schema/schemas/request/slash-command/index.json",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "JSON schema for Slack slash command request",

  "type": "object",
  "properties": {
    "token": {
      "type": "string",
      "examples": ["gIkuvaNzQIHg97ATvDxqgjtO"]
    },
    "team_id": {
      "$ref": "../team.json#/definitions/id"
    },
    "team_domain": {
      "$ref": "../team.json#/definitions/domain"
    },
    "enterprise_id": {
      "$ref": "../enterprise.json#/definitions/id"
    },
    "enterprise_name": {
      "$ref": "../enterprise.json#/definitions/name"
    },
    "channel_id": {
      "$ref": "../channel.json#/definitions/id"
    },
    "channel_name": {
      "$ref": "../channel.json#/definitions/name"
    },
    "user_id": {
      "$ref": "../user.json#/definitions/id"
    },
    "user_name": {
      "$ref": "../user.json#/definitions/name"
    },
    "command": {
      "type": "string",
      "default": "/",
      "pattern": "^/\\w+$"
    },
    "text": {
      "type": "string"
    },
    "response_url": {
      "$ref": "../../../pattern.json#/definitions/string/url"
    },
    "trigger_id": {
      "type": "string",
      "examples": ["13345224609.738474920.8088930838d88f008e0"]
    }
  },
  "required": ["command", "text"]
}
