Skip to content

Instantly share code, notes, and snippets.

@bmorton
Created August 4, 2023 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bmorton/735dc80697359afd4a0c7d52b901844e to your computer and use it in GitHub Desktop.
Save bmorton/735dc80697359afd4a0c7d52b901844e to your computer and use it in GitHub Desktop.
This file has been truncated, but you can view the full file.
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "JSON Schema for an array of Block Kit blocks.",
"id": "https://api.slack.com/json-schema/block-kit/input/blocks",
"type": "array",
"maxItems": 50,
"items": {
"anyOf": [
{
"title": "Actions Block",
"description": "Schema for an `actions` block.",
"version": "1",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"elements"
],
"properties": {
"type": {
"type": "string",
"enum": [
"actions"
]
},
"block_id": {
"title": "Block ID",
"description": "Schema for a `block_id` accepted by all blocks.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"elements": {
"type": "array",
"minItems": 1,
"maxItems": 25,
"items": {
"anyOf": [
{
"title": "Static Select Element",
"description": "Schema for a static select element.",
"version": "1",
"type": "object",
"required": [
"type"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"static_select"
]
},
"action_id": {
"title": "Action ID",
"description": "Schema for an `action_id` accepted by all action elements.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"placeholder": {
"title": "Placeholder",
"description": "Schema placeholder accepted in selects.",
"version": "1",
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 150
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"initial_option": {
"title": "Single Option",
"description": "Schema for a single option.",
"version": "1",
"type": "object",
"required": [
"text"
],
"additionalProperties": false,
"properties": {
"text": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 75
},
"description": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
},
"options": {
"title": "Array of Options",
"description": "Schema for an array of options.",
"version": "1",
"type": "array",
"minItems": 1,
"maxItems": 100,
"items": {
"title": "Single Option",
"description": "Schema for a single option.",
"version": "1",
"type": "object",
"required": [
"text"
],
"additionalProperties": false,
"properties": {
"text": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 75
},
"description": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
},
"option_groups": {
"title": "Array of Option Groups",
"description": "Schema for an array of option groups.",
"version": "1",
"type": "array",
"minItems": 1,
"maxItems": 100,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"label",
"options"
],
"properties": {
"label": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"options": {
"title": "Array of Options",
"description": "Schema for an array of options.",
"version": "1",
"type": "array",
"minItems": 1,
"maxItems": 100,
"items": {
"title": "Single Option",
"description": "Schema for a single option.",
"version": "1",
"type": "object",
"required": [
"text"
],
"additionalProperties": false,
"properties": {
"text": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 75
},
"description": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
}
}
},
"confirm": {
"title": "Confirmation Hash",
"description": "Schema for a confirmation dialog after selecting an action.",
"version": "1",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"text": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"confirm": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"deny": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
},
{
"title": "Users Select Element",
"description": "Schema for a users select element.",
"version": "1",
"type": "object",
"required": [
"type"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"users_select"
]
},
"action_id": {
"title": "Action ID",
"description": "Schema for an `action_id` accepted by all action elements.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"initial_user": {
"type": "string",
"minLength": 1,
"sanitize": {
"multiline": false
}
},
"placeholder": {
"title": "Placeholder",
"description": "Schema placeholder accepted in selects.",
"version": "1",
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 150
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"confirm": {
"title": "Confirmation Hash",
"description": "Schema for a confirmation dialog after selecting an action.",
"version": "1",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"text": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"confirm": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"deny": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
},
{
"title": "Conversations Select Element",
"description": "Schema for a conversations select element.",
"version": "1",
"type": "object",
"required": [
"type"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"conversations_select"
]
},
"action_id": {
"title": "Action ID",
"description": "Schema for an `action_id` accepted by all action elements.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"initial_conversation": {
"type": "string",
"minLength": 1
},
"placeholder": {
"title": "Placeholder",
"description": "Schema placeholder accepted in selects.",
"version": "1",
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 150
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"confirm": {
"title": "Confirmation Hash",
"description": "Schema for a confirmation dialog after selecting an action.",
"version": "1",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"text": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"confirm": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"deny": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
},
{
"title": "Channels Select Element",
"description": "Schema for a channels select element.",
"version": "1",
"type": "object",
"required": [
"type"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"channels_select"
]
},
"action_id": {
"title": "Action ID",
"description": "Schema for an `action_id` accepted by all action elements.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"initial_channel": {
"type": "string",
"minLength": 1,
"sanitize": {
"multiline": false
}
},
"placeholder": {
"title": "Placeholder",
"description": "Schema placeholder accepted in selects.",
"version": "1",
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 150
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"confirm": {
"title": "Confirmation Hash",
"description": "Schema for a confirmation dialog after selecting an action.",
"version": "1",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"text": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"confirm": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"deny": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
},
{
"title": "External Select Element",
"description": "Schema for an external select element.",
"version": "1",
"type": "object",
"required": [
"type"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"external_select"
]
},
"action_id": {
"title": "Action ID",
"description": "Schema for an `action_id` accepted by all action elements.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"initial_option": {
"title": "Single Option",
"description": "Schema for a single option.",
"version": "1",
"type": "object",
"required": [
"text"
],
"additionalProperties": false,
"properties": {
"text": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 75
},
"description": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
},
"placeholder": {
"title": "Placeholder",
"description": "Schema placeholder accepted in selects.",
"version": "1",
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 150
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"min_query_length": {
"type": "integer",
"minimum": 0
},
"confirm": {
"title": "Confirmation Hash",
"description": "Schema for a confirmation dialog after selecting an action.",
"version": "1",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"text": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"confirm": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"deny": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
},
{
"title": "Button Element",
"description": "Schema for a button element.",
"version": "1",
"type": "object",
"required": [
"type",
"text"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"button"
]
},
"text": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"action_id": {
"title": "Action ID",
"description": "Schema for an `action_id` accepted by all action elements.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 75,
"sanitize": {
"multiline": false
}
},
"url": {
"type": "string",
"minLength": 1,
"maxLength": 3000,
"sanitize": {
"multiline": false
}
},
"confirm": {
"title": "Confirmation Hash",
"description": "Schema for a confirmation dialog after selecting an action.",
"version": "1",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"text": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"confirm": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"deny": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
},
{
"title": "Overflow Element",
"description": "Schema for an overflow element.",
"version": "1",
"type": "object",
"required": [
"type",
"options"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"overflow"
]
},
"action_id": {
"title": "Action ID",
"description": "Schema for an `action_id` accepted by all action elements.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"options": {
"title": "Array of Options for Overflow Element",
"description": "Schema for an array of options.",
"version": "1",
"type": "array",
"minItems": 2,
"maxItems": 5,
"items": {
"title": "Single Overflow Option",
"description": "Schema for a single option.",
"version": "1",
"type": "object",
"required": [
"text"
],
"additionalProperties": false,
"properties": {
"text": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 75
},
"url": {
"type": "string",
"minLength": 1,
"maxLength": 3000,
"sanitize": {
"multiline": false
}
},
"description": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
},
"confirm": {
"title": "Confirmation Hash",
"description": "Schema for a confirmation dialog after selecting an action.",
"version": "1",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"text": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"confirm": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"deny": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
},
{
"title": "Datepicker Element",
"description": "Schema for a datepicker element.",
"version": "1",
"type": "object",
"required": [
"type"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"datepicker"
]
},
"action_id": {
"title": "Action ID",
"description": "Schema for an `action_id` accepted by all action elements.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"initial_date": {
"type": "string",
"format": "date",
"minLength": 1,
"maxLength": 10,
"sanitize": {
"multiline": false
}
},
"placeholder": {
"title": "Placeholder",
"description": "Schema placeholder accepted in selects.",
"version": "1",
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 150
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"confirm": {
"title": "Confirmation Hash",
"description": "Schema for a confirmation dialog after selecting an action.",
"version": "1",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"text": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"confirm": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"deny": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
}
]
}
}
}
},
{
"title": "Canvas Block",
"description": "Schema for a `canvas` block.",
"version": "X",
"type": "object",
"required": [
"type"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"canvas"
]
},
"block_id": {
"title": "Block ID",
"description": "Schema for a `block_id` accepted by all blocks.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"canvas_id": {
"type": "string"
},
"external_id": {
"type": "string"
}
}
},
{
"title": "Context Block",
"description": "Schema for a `context` block.",
"version": "1",
"type": "object",
"required": [
"type",
"elements"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"context"
]
},
"block_id": {
"title": "Block ID",
"description": "Schema for a `block_id` accepted by all blocks.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"elements": {
"type": "array",
"minItems": 1,
"maxItems": 10,
"items": {
"anyOf": [
{
"title": "Image Element",
"description": "Schema for an image element.",
"version": "1",
"type": "object",
"required": [
"type",
"image_url",
"alt_text"
],
"additionalProperties": false,
"properties": {
"type": {
"enum": [
"image"
],
"type": "string"
},
"image_url": {
"type": "string",
"minLength": 1,
"maxLength": 3000,
"sanitize": {
"multiline": false
}
},
"alt_text": {
"type": "string",
"minLength": 1,
"maxLength": 2000,
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
},
{
"title": "User Mention",
"description": "Schema for a user mention.",
"version": "W",
"type": "object",
"required": [
"type",
"user_id"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"user"
]
},
"user_id": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
}
]
}
}
}
},
{
"title": "Divider Block",
"description": "Schema for a `divider` block.",
"version": "1",
"type": "object",
"required": [
"type"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"divider"
]
},
"block_id": {
"title": "Block ID",
"description": "Schema for a `block_id` accepted by all blocks.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
}
}
},
{
"title": "File Block",
"description": "Schema for a `file` block.",
"version": "X",
"type": "object",
"required": [
"type",
"source"
],
"additionalProperties": false,
"properties": {
"type": {
"enum": [
"file"
],
"type": "string"
},
"file_id": {
"type": "string"
},
"external_id": {
"type": "string"
},
"source": {
"enum": [
"remote"
],
"type": "string"
},
"block_id": {
"title": "Block ID",
"description": "Schema for a `block_id` accepted by all blocks.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
}
}
},
{
"title": "Image Block",
"description": "Schema for an `image` block.",
"version": "1",
"type": "object",
"required": [
"type",
"image_url",
"alt_text"
],
"additionalProperties": false,
"properties": {
"type": {
"enum": [
"image"
],
"type": "string"
},
"block_id": {
"title": "Block ID",
"description": "Schema for a `block_id` accepted by all blocks.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"image_url": {
"type": "string",
"minLength": 1,
"maxLength": 3000,
"sanitize": {
"multiline": false
}
},
"alt_text": {
"type": "string",
"minLength": 1,
"maxLength": 2000,
"sanitize": {
"multiline": false
}
},
"title": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 2000
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
},
{
"title": "Event Block",
"description": "Schema for an `event` block.",
"version": "1",
"type": "object",
"required": [
"type",
"event_id"
],
"additionalProperties": false,
"properties": {
"type": {
"enum": [
"event"
],
"type": "string"
},
"block_id": {
"type": "string"
},
"event_id": {
"type": "string"
}
}
},
{
"title": "Message Block",
"description": "Schema for a `message` block.",
"version": "X",
"type": "object",
"required": [
"type",
"channel_id",
"timestamp",
"team_id"
],
"additionalProperties": false,
"properties": {
"type": {
"enum": [
"message"
],
"type": "string"
},
"block_id": {
"type": "string"
},
"team_id": {
"type": "integer"
},
"channel_id": {
"type": "string"
},
"timestamp": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Email Block",
"description": "Schema for an `email` block.",
"version": "X",
"type": "object",
"required": [
"type",
"email_id"
],
"additionalProperties": false,
"properties": {
"type": {
"enum": [
"email"
],
"type": "string"
},
"block_id": {
"type": "string"
},
"email_id": {
"type": "string"
}
}
},
{
"title": "Section Block",
"description": "Schema for a `section` block.",
"version": "1",
"type": "object",
"additionalProperties": false,
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"section"
]
},
"block_id": {
"title": "Block ID",
"description": "Schema for a `block_id` accepted by all blocks.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"text": {
"allOf": [
{
"title": "Maximum of 3000 characters",
"description": "Maximum of 3000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 3000
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"accessory": {
"anyOf": [
{
"title": "Button Element",
"description": "Schema for a button element.",
"version": "1",
"type": "object",
"required": [
"type",
"text"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"button"
]
},
"text": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"action_id": {
"title": "Action ID",
"description": "Schema for an `action_id` accepted by all action elements.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 75,
"sanitize": {
"multiline": false
}
},
"url": {
"type": "string",
"minLength": 1,
"maxLength": 3000,
"sanitize": {
"multiline": false
}
},
"confirm": {
"title": "Confirmation Hash",
"description": "Schema for a confirmation dialog after selecting an action.",
"version": "1",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"text": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"confirm": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"deny": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
},
{
"title": "Overflow Element",
"description": "Schema for an overflow element.",
"version": "1",
"type": "object",
"required": [
"type",
"options"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"overflow"
]
},
"action_id": {
"title": "Action ID",
"description": "Schema for an `action_id` accepted by all action elements.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"options": {
"title": "Array of Options for Overflow Element",
"description": "Schema for an array of options.",
"version": "1",
"type": "array",
"minItems": 2,
"maxItems": 5,
"items": {
"title": "Single Overflow Option",
"description": "Schema for a single option.",
"version": "1",
"type": "object",
"required": [
"text"
],
"additionalProperties": false,
"properties": {
"text": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 75
},
"url": {
"type": "string",
"minLength": 1,
"maxLength": 3000,
"sanitize": {
"multiline": false
}
},
"description": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
},
"confirm": {
"title": "Confirmation Hash",
"description": "Schema for a confirmation dialog after selecting an action.",
"version": "1",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"text": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"confirm": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"deny": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
},
{
"title": "Static Select Element",
"description": "Schema for a static select element.",
"version": "1",
"type": "object",
"required": [
"type"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"static_select"
]
},
"action_id": {
"title": "Action ID",
"description": "Schema for an `action_id` accepted by all action elements.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"placeholder": {
"title": "Placeholder",
"description": "Schema placeholder accepted in selects.",
"version": "1",
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 150
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"initial_option": {
"title": "Single Option",
"description": "Schema for a single option.",
"version": "1",
"type": "object",
"required": [
"text"
],
"additionalProperties": false,
"properties": {
"text": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 75
},
"description": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
},
"options": {
"title": "Array of Options",
"description": "Schema for an array of options.",
"version": "1",
"type": "array",
"minItems": 1,
"maxItems": 100,
"items": {
"title": "Single Option",
"description": "Schema for a single option.",
"version": "1",
"type": "object",
"required": [
"text"
],
"additionalProperties": false,
"properties": {
"text": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 75
},
"description": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
},
"option_groups": {
"title": "Array of Option Groups",
"description": "Schema for an array of option groups.",
"version": "1",
"type": "array",
"minItems": 1,
"maxItems": 100,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"label",
"options"
],
"properties": {
"label": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"options": {
"title": "Array of Options",
"description": "Schema for an array of options.",
"version": "1",
"type": "array",
"minItems": 1,
"maxItems": 100,
"items": {
"title": "Single Option",
"description": "Schema for a single option.",
"version": "1",
"type": "object",
"required": [
"text"
],
"additionalProperties": false,
"properties": {
"text": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 75
},
"description": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
}
}
},
"confirm": {
"title": "Confirmation Hash",
"description": "Schema for a confirmation dialog after selecting an action.",
"version": "1",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"text": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"confirm": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"deny": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
},
{
"title": "Users Select Element",
"description": "Schema for a users select element.",
"version": "1",
"type": "object",
"required": [
"type"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"users_select"
]
},
"action_id": {
"title": "Action ID",
"description": "Schema for an `action_id` accepted by all action elements.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"initial_user": {
"type": "string",
"minLength": 1,
"sanitize": {
"multiline": false
}
},
"placeholder": {
"title": "Placeholder",
"description": "Schema placeholder accepted in selects.",
"version": "1",
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 150
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"confirm": {
"title": "Confirmation Hash",
"description": "Schema for a confirmation dialog after selecting an action.",
"version": "1",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"text": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"confirm": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"deny": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
},
{
"title": "Conversations Select Element",
"description": "Schema for a conversations select element.",
"version": "1",
"type": "object",
"required": [
"type"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"conversations_select"
]
},
"action_id": {
"title": "Action ID",
"description": "Schema for an `action_id` accepted by all action elements.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"initial_conversation": {
"type": "string",
"minLength": 1
},
"placeholder": {
"title": "Placeholder",
"description": "Schema placeholder accepted in selects.",
"version": "1",
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 150
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"confirm": {
"title": "Confirmation Hash",
"description": "Schema for a confirmation dialog after selecting an action.",
"version": "1",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"text": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"confirm": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"deny": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
},
{
"title": "Channels Select Element",
"description": "Schema for a channels select element.",
"version": "1",
"type": "object",
"required": [
"type"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"channels_select"
]
},
"action_id": {
"title": "Action ID",
"description": "Schema for an `action_id` accepted by all action elements.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"initial_channel": {
"type": "string",
"minLength": 1,
"sanitize": {
"multiline": false
}
},
"placeholder": {
"title": "Placeholder",
"description": "Schema placeholder accepted in selects.",
"version": "1",
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 150
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"confirm": {
"title": "Confirmation Hash",
"description": "Schema for a confirmation dialog after selecting an action.",
"version": "1",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"text": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"confirm": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"deny": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
},
{
"title": "External Select Element",
"description": "Schema for an external select element.",
"version": "1",
"type": "object",
"required": [
"type"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"external_select"
]
},
"action_id": {
"title": "Action ID",
"description": "Schema for an `action_id` accepted by all action elements.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"initial_option": {
"title": "Single Option",
"description": "Schema for a single option.",
"version": "1",
"type": "object",
"required": [
"text"
],
"additionalProperties": false,
"properties": {
"text": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 75
},
"description": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
},
"placeholder": {
"title": "Placeholder",
"description": "Schema placeholder accepted in selects.",
"version": "1",
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 150
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"min_query_length": {
"type": "integer",
"minimum": 0
},
"confirm": {
"title": "Confirmation Hash",
"description": "Schema for a confirmation dialog after selecting an action.",
"version": "1",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"text": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"confirm": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"deny": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
},
{
"title": "Image Element",
"description": "Schema for an image element.",
"version": "1",
"type": "object",
"required": [
"type",
"image_url",
"alt_text"
],
"additionalProperties": false,
"properties": {
"type": {
"enum": [
"image"
],
"type": "string"
},
"image_url": {
"type": "string",
"minLength": 1,
"maxLength": 3000,
"sanitize": {
"multiline": false
}
},
"alt_text": {
"type": "string",
"minLength": 1,
"maxLength": 2000,
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Datepicker Element",
"description": "Schema for a datepicker element.",
"version": "1",
"type": "object",
"required": [
"type"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"datepicker"
]
},
"action_id": {
"title": "Action ID",
"description": "Schema for an `action_id` accepted by all action elements.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"initial_date": {
"type": "string",
"format": "date",
"minLength": 1,
"maxLength": 10,
"sanitize": {
"multiline": false
}
},
"placeholder": {
"title": "Placeholder",
"description": "Schema placeholder accepted in selects.",
"version": "1",
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 150
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"confirm": {
"title": "Confirmation Hash",
"description": "Schema for a confirmation dialog after selecting an action.",
"version": "1",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"text": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"confirm": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"deny": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
}
]
},
"fields": {
"type": "array",
"minItems": 1,
"maxItems": 10,
"items": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 2000
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
}
}
}
},
{
"title": "Expandable Block",
"description": "Schema for an `expandable` block.",
"version": "X",
"type": "object",
"required": [
"type",
"blocks"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"expandable"
]
},
"block_id": {
"title": "Block ID",
"description": "Schema for a `block_id` accepted by all blocks.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"blocks": {
"type": "array",
"items": {
"anyOf": [
{
"title": "Actions Block",
"description": "Schema for an `actions` block.",
"version": "1",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"elements"
],
"properties": {
"type": {
"type": "string",
"enum": [
"actions"
]
},
"block_id": {
"title": "Block ID",
"description": "Schema for a `block_id` accepted by all blocks.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"elements": {
"type": "array",
"minItems": 1,
"maxItems": 25,
"items": {
"anyOf": [
{
"title": "Static Select Element",
"description": "Schema for a static select element.",
"version": "1",
"type": "object",
"required": [
"type"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"static_select"
]
},
"action_id": {
"title": "Action ID",
"description": "Schema for an `action_id` accepted by all action elements.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"placeholder": {
"title": "Placeholder",
"description": "Schema placeholder accepted in selects.",
"version": "1",
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 150
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"initial_option": {
"title": "Single Option",
"description": "Schema for a single option.",
"version": "1",
"type": "object",
"required": [
"text"
],
"additionalProperties": false,
"properties": {
"text": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 75
},
"description": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
},
"options": {
"title": "Array of Options",
"description": "Schema for an array of options.",
"version": "1",
"type": "array",
"minItems": 1,
"maxItems": 100,
"items": {
"title": "Single Option",
"description": "Schema for a single option.",
"version": "1",
"type": "object",
"required": [
"text"
],
"additionalProperties": false,
"properties": {
"text": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 75
},
"description": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
},
"option_groups": {
"title": "Array of Option Groups",
"description": "Schema for an array of option groups.",
"version": "1",
"type": "array",
"minItems": 1,
"maxItems": 100,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"label",
"options"
],
"properties": {
"label": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"options": {
"title": "Array of Options",
"description": "Schema for an array of options.",
"version": "1",
"type": "array",
"minItems": 1,
"maxItems": 100,
"items": {
"title": "Single Option",
"description": "Schema for a single option.",
"version": "1",
"type": "object",
"required": [
"text"
],
"additionalProperties": false,
"properties": {
"text": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 75
},
"description": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
}
}
},
"confirm": {
"title": "Confirmation Hash",
"description": "Schema for a confirmation dialog after selecting an action.",
"version": "1",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"text": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"confirm": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"deny": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
},
{
"title": "Users Select Element",
"description": "Schema for a users select element.",
"version": "1",
"type": "object",
"required": [
"type"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"users_select"
]
},
"action_id": {
"title": "Action ID",
"description": "Schema for an `action_id` accepted by all action elements.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"initial_user": {
"type": "string",
"minLength": 1,
"sanitize": {
"multiline": false
}
},
"placeholder": {
"title": "Placeholder",
"description": "Schema placeholder accepted in selects.",
"version": "1",
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 150
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"confirm": {
"title": "Confirmation Hash",
"description": "Schema for a confirmation dialog after selecting an action.",
"version": "1",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"text": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"confirm": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"deny": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
},
{
"title": "Conversations Select Element",
"description": "Schema for a conversations select element.",
"version": "1",
"type": "object",
"required": [
"type"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"conversations_select"
]
},
"action_id": {
"title": "Action ID",
"description": "Schema for an `action_id` accepted by all action elements.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"initial_conversation": {
"type": "string",
"minLength": 1
},
"placeholder": {
"title": "Placeholder",
"description": "Schema placeholder accepted in selects.",
"version": "1",
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 150
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"confirm": {
"title": "Confirmation Hash",
"description": "Schema for a confirmation dialog after selecting an action.",
"version": "1",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"text": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"confirm": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"deny": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
},
{
"title": "Channels Select Element",
"description": "Schema for a channels select element.",
"version": "1",
"type": "object",
"required": [
"type"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"channels_select"
]
},
"action_id": {
"title": "Action ID",
"description": "Schema for an `action_id` accepted by all action elements.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"initial_channel": {
"type": "string",
"minLength": 1,
"sanitize": {
"multiline": false
}
},
"placeholder": {
"title": "Placeholder",
"description": "Schema placeholder accepted in selects.",
"version": "1",
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 150
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"confirm": {
"title": "Confirmation Hash",
"description": "Schema for a confirmation dialog after selecting an action.",
"version": "1",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"text": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"confirm": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"deny": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
},
{
"title": "External Select Element",
"description": "Schema for an external select element.",
"version": "1",
"type": "object",
"required": [
"type"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"external_select"
]
},
"action_id": {
"title": "Action ID",
"description": "Schema for an `action_id` accepted by all action elements.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"initial_option": {
"title": "Single Option",
"description": "Schema for a single option.",
"version": "1",
"type": "object",
"required": [
"text"
],
"additionalProperties": false,
"properties": {
"text": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 75
},
"description": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
},
"placeholder": {
"title": "Placeholder",
"description": "Schema placeholder accepted in selects.",
"version": "1",
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 150
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"min_query_length": {
"type": "integer",
"minimum": 0
},
"confirm": {
"title": "Confirmation Hash",
"description": "Schema for a confirmation dialog after selecting an action.",
"version": "1",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"text": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"confirm": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"deny": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
},
{
"title": "Button Element",
"description": "Schema for a button element.",
"version": "1",
"type": "object",
"required": [
"type",
"text"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"button"
]
},
"text": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"action_id": {
"title": "Action ID",
"description": "Schema for an `action_id` accepted by all action elements.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 75,
"sanitize": {
"multiline": false
}
},
"url": {
"type": "string",
"minLength": 1,
"maxLength": 3000,
"sanitize": {
"multiline": false
}
},
"confirm": {
"title": "Confirmation Hash",
"description": "Schema for a confirmation dialog after selecting an action.",
"version": "1",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"text": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"confirm": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"deny": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
},
{
"title": "Overflow Element",
"description": "Schema for an overflow element.",
"version": "1",
"type": "object",
"required": [
"type",
"options"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"overflow"
]
},
"action_id": {
"title": "Action ID",
"description": "Schema for an `action_id` accepted by all action elements.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"options": {
"title": "Array of Options for Overflow Element",
"description": "Schema for an array of options.",
"version": "1",
"type": "array",
"minItems": 2,
"maxItems": 5,
"items": {
"title": "Single Overflow Option",
"description": "Schema for a single option.",
"version": "1",
"type": "object",
"required": [
"text"
],
"additionalProperties": false,
"properties": {
"text": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 75
},
"url": {
"type": "string",
"minLength": 1,
"maxLength": 3000,
"sanitize": {
"multiline": false
}
},
"description": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
},
"confirm": {
"title": "Confirmation Hash",
"description": "Schema for a confirmation dialog after selecting an action.",
"version": "1",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"text": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"confirm": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"deny": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
},
{
"title": "Datepicker Element",
"description": "Schema for a datepicker element.",
"version": "1",
"type": "object",
"required": [
"type"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"datepicker"
]
},
"action_id": {
"title": "Action ID",
"description": "Schema for an `action_id` accepted by all action elements.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"initial_date": {
"type": "string",
"format": "date",
"minLength": 1,
"maxLength": 10,
"sanitize": {
"multiline": false
}
},
"placeholder": {
"title": "Placeholder",
"description": "Schema placeholder accepted in selects.",
"version": "1",
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 150
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"confirm": {
"title": "Confirmation Hash",
"description": "Schema for a confirmation dialog after selecting an action.",
"version": "1",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"text": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"confirm": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"deny": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
}
]
}
}
}
},
{
"title": "Canvas Block",
"description": "Schema for a `canvas` block.",
"version": "X",
"type": "object",
"required": [
"type"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"canvas"
]
},
"block_id": {
"title": "Block ID",
"description": "Schema for a `block_id` accepted by all blocks.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"canvas_id": {
"type": "string"
},
"external_id": {
"type": "string"
}
}
},
{
"title": "Context Block",
"description": "Schema for a `context` block.",
"version": "1",
"type": "object",
"required": [
"type",
"elements"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"context"
]
},
"block_id": {
"title": "Block ID",
"description": "Schema for a `block_id` accepted by all blocks.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"elements": {
"type": "array",
"minItems": 1,
"maxItems": 10,
"items": {
"anyOf": [
{
"title": "Image Element",
"description": "Schema for an image element.",
"version": "1",
"type": "object",
"required": [
"type",
"image_url",
"alt_text"
],
"additionalProperties": false,
"properties": {
"type": {
"enum": [
"image"
],
"type": "string"
},
"image_url": {
"type": "string",
"minLength": 1,
"maxLength": 3000,
"sanitize": {
"multiline": false
}
},
"alt_text": {
"type": "string",
"minLength": 1,
"maxLength": 2000,
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
},
{
"title": "User Mention",
"description": "Schema for a user mention.",
"version": "W",
"type": "object",
"required": [
"type",
"user_id"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"user"
]
},
"user_id": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
}
]
}
}
}
},
{
"title": "Divider Block",
"description": "Schema for a `divider` block.",
"version": "1",
"type": "object",
"required": [
"type"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"divider"
]
},
"block_id": {
"title": "Block ID",
"description": "Schema for a `block_id` accepted by all blocks.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
}
}
},
{
"title": "File Block",
"description": "Schema for a `file` block.",
"version": "X",
"type": "object",
"required": [
"type",
"source"
],
"additionalProperties": false,
"properties": {
"type": {
"enum": [
"file"
],
"type": "string"
},
"file_id": {
"type": "string"
},
"external_id": {
"type": "string"
},
"source": {
"enum": [
"remote"
],
"type": "string"
},
"block_id": {
"title": "Block ID",
"description": "Schema for a `block_id` accepted by all blocks.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
}
}
},
{
"title": "Image Block",
"description": "Schema for an `image` block.",
"version": "1",
"type": "object",
"required": [
"type",
"image_url",
"alt_text"
],
"additionalProperties": false,
"properties": {
"type": {
"enum": [
"image"
],
"type": "string"
},
"block_id": {
"title": "Block ID",
"description": "Schema for a `block_id` accepted by all blocks.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"image_url": {
"type": "string",
"minLength": 1,
"maxLength": 3000,
"sanitize": {
"multiline": false
}
},
"alt_text": {
"type": "string",
"minLength": 1,
"maxLength": 2000,
"sanitize": {
"multiline": false
}
},
"title": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 2000
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
},
{
"title": "Section Block",
"description": "Schema for a `section` block.",
"version": "1",
"type": "object",
"additionalProperties": false,
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"section"
]
},
"block_id": {
"title": "Block ID",
"description": "Schema for a `block_id` accepted by all blocks.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"text": {
"allOf": [
{
"title": "Maximum of 3000 characters",
"description": "Maximum of 3000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 3000
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"accessory": {
"anyOf": [
{
"title": "Button Element",
"description": "Schema for a button element.",
"version": "1",
"type": "object",
"required": [
"type",
"text"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"button"
]
},
"text": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"action_id": {
"title": "Action ID",
"description": "Schema for an `action_id` accepted by all action elements.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 75,
"sanitize": {
"multiline": false
}
},
"url": {
"type": "string",
"minLength": 1,
"maxLength": 3000,
"sanitize": {
"multiline": false
}
},
"confirm": {
"title": "Confirmation Hash",
"description": "Schema for a confirmation dialog after selecting an action.",
"version": "1",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"text": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"confirm": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"deny": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
},
{
"title": "Overflow Element",
"description": "Schema for an overflow element.",
"version": "1",
"type": "object",
"required": [
"type",
"options"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"overflow"
]
},
"action_id": {
"title": "Action ID",
"description": "Schema for an `action_id` accepted by all action elements.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"options": {
"title": "Array of Options for Overflow Element",
"description": "Schema for an array of options.",
"version": "1",
"type": "array",
"minItems": 2,
"maxItems": 5,
"items": {
"title": "Single Overflow Option",
"description": "Schema for a single option.",
"version": "1",
"type": "object",
"required": [
"text"
],
"additionalProperties": false,
"properties": {
"text": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 75
},
"url": {
"type": "string",
"minLength": 1,
"maxLength": 3000,
"sanitize": {
"multiline": false
}
},
"description": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
},
"confirm": {
"title": "Confirmation Hash",
"description": "Schema for a confirmation dialog after selecting an action.",
"version": "1",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"text": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"confirm": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"deny": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
},
{
"title": "Static Select Element",
"description": "Schema for a static select element.",
"version": "1",
"type": "object",
"required": [
"type"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"static_select"
]
},
"action_id": {
"title": "Action ID",
"description": "Schema for an `action_id` accepted by all action elements.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"placeholder": {
"title": "Placeholder",
"description": "Schema placeholder accepted in selects.",
"version": "1",
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 150
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"initial_option": {
"title": "Single Option",
"description": "Schema for a single option.",
"version": "1",
"type": "object",
"required": [
"text"
],
"additionalProperties": false,
"properties": {
"text": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 75
},
"description": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
},
"options": {
"title": "Array of Options",
"description": "Schema for an array of options.",
"version": "1",
"type": "array",
"minItems": 1,
"maxItems": 100,
"items": {
"title": "Single Option",
"description": "Schema for a single option.",
"version": "1",
"type": "object",
"required": [
"text"
],
"additionalProperties": false,
"properties": {
"text": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 75
},
"description": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
},
"option_groups": {
"title": "Array of Option Groups",
"description": "Schema for an array of option groups.",
"version": "1",
"type": "array",
"minItems": 1,
"maxItems": 100,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"label",
"options"
],
"properties": {
"label": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"options": {
"title": "Array of Options",
"description": "Schema for an array of options.",
"version": "1",
"type": "array",
"minItems": 1,
"maxItems": 100,
"items": {
"title": "Single Option",
"description": "Schema for a single option.",
"version": "1",
"type": "object",
"required": [
"text"
],
"additionalProperties": false,
"properties": {
"text": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 75
},
"description": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
}
}
},
"confirm": {
"title": "Confirmation Hash",
"description": "Schema for a confirmation dialog after selecting an action.",
"version": "1",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"text": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"confirm": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"deny": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
},
{
"title": "Users Select Element",
"description": "Schema for a users select element.",
"version": "1",
"type": "object",
"required": [
"type"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"users_select"
]
},
"action_id": {
"title": "Action ID",
"description": "Schema for an `action_id` accepted by all action elements.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"initial_user": {
"type": "string",
"minLength": 1,
"sanitize": {
"multiline": false
}
},
"placeholder": {
"title": "Placeholder",
"description": "Schema placeholder accepted in selects.",
"version": "1",
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 150
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"confirm": {
"title": "Confirmation Hash",
"description": "Schema for a confirmation dialog after selecting an action.",
"version": "1",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"text": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"confirm": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"deny": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
},
{
"title": "Conversations Select Element",
"description": "Schema for a conversations select element.",
"version": "1",
"type": "object",
"required": [
"type"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"conversations_select"
]
},
"action_id": {
"title": "Action ID",
"description": "Schema for an `action_id` accepted by all action elements.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"initial_conversation": {
"type": "string",
"minLength": 1
},
"placeholder": {
"title": "Placeholder",
"description": "Schema placeholder accepted in selects.",
"version": "1",
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 150
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"confirm": {
"title": "Confirmation Hash",
"description": "Schema for a confirmation dialog after selecting an action.",
"version": "1",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"text": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"confirm": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"deny": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
},
{
"title": "Channels Select Element",
"description": "Schema for a channels select element.",
"version": "1",
"type": "object",
"required": [
"type"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"channels_select"
]
},
"action_id": {
"title": "Action ID",
"description": "Schema for an `action_id` accepted by all action elements.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"initial_channel": {
"type": "string",
"minLength": 1,
"sanitize": {
"multiline": false
}
},
"placeholder": {
"title": "Placeholder",
"description": "Schema placeholder accepted in selects.",
"version": "1",
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 150
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"confirm": {
"title": "Confirmation Hash",
"description": "Schema for a confirmation dialog after selecting an action.",
"version": "1",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"text": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"confirm": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"deny": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
},
{
"title": "External Select Element",
"description": "Schema for an external select element.",
"version": "1",
"type": "object",
"required": [
"type"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"external_select"
]
},
"action_id": {
"title": "Action ID",
"description": "Schema for an `action_id` accepted by all action elements.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"initial_option": {
"title": "Single Option",
"description": "Schema for a single option.",
"version": "1",
"type": "object",
"required": [
"text"
],
"additionalProperties": false,
"properties": {
"text": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 75
},
"description": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 75
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
},
"placeholder": {
"title": "Placeholder",
"description": "Schema placeholder accepted in selects.",
"version": "1",
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 150
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"min_query_length": {
"type": "integer",
"minimum": 0
},
"confirm": {
"title": "Confirmation Hash",
"description": "Schema for a confirmation dialog after selecting an action.",
"version": "1",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"text": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"confirm": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"deny": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
},
{
"title": "Image Element",
"description": "Schema for an image element.",
"version": "1",
"type": "object",
"required": [
"type",
"image_url",
"alt_text"
],
"additionalProperties": false,
"properties": {
"type": {
"enum": [
"image"
],
"type": "string"
},
"image_url": {
"type": "string",
"minLength": 1,
"maxLength": 3000,
"sanitize": {
"multiline": false
}
},
"alt_text": {
"type": "string",
"minLength": 1,
"maxLength": 2000,
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Datepicker Element",
"description": "Schema for a datepicker element.",
"version": "1",
"type": "object",
"required": [
"type"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"datepicker"
]
},
"action_id": {
"title": "Action ID",
"description": "Schema for an `action_id` accepted by all action elements.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"initial_date": {
"type": "string",
"format": "date",
"minLength": 1,
"maxLength": 10,
"sanitize": {
"multiline": false
}
},
"placeholder": {
"title": "Placeholder",
"description": "Schema placeholder accepted in selects.",
"version": "1",
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 150
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"confirm": {
"title": "Confirmation Hash",
"description": "Schema for a confirmation dialog after selecting an action.",
"version": "1",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"text": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
},
"confirm": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
},
"deny": {
"allOf": [
{
"title": "Sanitized Single Line Text",
"description": "Sanitized, single line `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"sanitize": {
"multiline": false
}
}
}
},
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 30
}
}
},
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
}
]
}
}
}
}
}
]
},
"fields": {
"type": "array",
"minItems": 1,
"maxItems": 10,
"items": {
"allOf": [
{
"title": "Maximum of 2000 characters",
"description": "Maximum of 2000 characters for `plain_text` or `mrkdwn` fields.",
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 2000
}
}
},
{
"title": "Available Text Elements",
"description": "Ref to available text elements.",
"version": "1",
"anyOf": [
{
"title": "Plain Text Element",
"description": "Schema for a `plain_text` text element.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"emoji"
],
"coerce": true,
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"plain_text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"emoji": {
"type": "boolean",
"default": true,
"description": "Boolean indicating whether or not Slack style emoji should be recognized within the string."
}
}
},
{
"title": "Mrkdwn Text Element",
"description": "Schema for a `mrkdwn` text element. This element accepts Slack Mrkdwn in it's `text` field.",
"type": "object",
"version": "1",
"required": [
"type",
"text",
"verbatim"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"mrkdwn"
]
},
"text": {
"type": "string",
"minLength": 1
},
"verbatim": {
"type": "boolean",
"default": false,
"description": "Don't attempt to convert links or mentions to mrkdwn."
}
}
}
]
}
]
}
}
}
},
{
"title": "Rich Text Block",
"description": "Schema for a `rich text` block.",
"version": "W",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"elements"
],
"properties": {
"type": {
"type": "string",
"enum": [
"rich_text"
]
},
"block_id": {
"title": "Block ID",
"description": "Schema for a `block_id` accepted by all blocks.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"elements": {
"type": "array",
"items": {
"anyOf": [
{
"title": "Rich Text Section",
"description": "Schema for a `rich text section` block.",
"version": "W",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"elements"
],
"properties": {
"type": {
"type": "string",
"enum": [
"rich_text_section"
]
},
"block_id": {
"title": "Block ID",
"description": "Schema for a `block_id` accepted by all blocks.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"elements": {
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "JSON Schema for an array of rich text elements",
"type": "array",
"items": {
"anyOf": [
{
"title": "Broadcast Mention",
"description": "Schema for a broadcast mention.",
"version": "W",
"type": "object",
"required": [
"type",
"range"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"broadcast"
]
},
"range": {
"type": "string",
"enum": [
"here",
"channel",
"everyone"
]
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Hex color",
"description": "Schema for a hex color.",
"version": "W",
"type": "object",
"required": [
"type",
"value"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"color"
]
},
"value": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Channel",
"description": "Schema for a channel mention.",
"version": "W",
"type": "object",
"required": [
"type",
"channel_id"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"channel"
]
},
"channel_id": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Date",
"description": "Schema for a date.",
"version": "W",
"type": "object",
"required": [
"type",
"timestamp",
"format"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"date"
]
},
"timestamp": {
"type": "integer"
},
"format": {
"type": "string",
"minLength": 1
},
"url": {
"type": "string",
"minLength": 1
},
"fallback": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Style",
"description": "Schema for a `style` object accepted by rich text blocks.",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"code": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Emoji",
"description": "Schema for an emoji mention.",
"version": "W",
"type": "object",
"required": [
"type",
"name"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"emoji"
]
},
"name": {
"type": "string",
"minLength": 1
},
"skin_tone": {
"type": "integer",
"minimum": 2,
"maximum": 6
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Link",
"description": "Schema for a link.",
"version": "W",
"type": "object",
"required": [
"type",
"url"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"link"
]
},
"url": {
"type": "string",
"minLength": 1
},
"text": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Style",
"description": "Schema for a `style` object accepted by rich text blocks.",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"code": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Team Mention",
"description": "Schema for a team mention.",
"version": "W",
"type": "object",
"required": [
"type",
"team_id"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"team"
]
},
"team_id": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Text",
"description": "Schema for a rich text element.",
"version": "W",
"type": "object",
"required": [
"type",
"text"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Style",
"description": "Schema for a `style` object accepted by rich text blocks.",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"code": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "User Mention",
"description": "Schema for a user mention.",
"version": "W",
"type": "object",
"required": [
"type",
"user_id"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"user"
]
},
"user_id": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Usergroup",
"description": "Schema for a usergroup mention.",
"version": "W",
"type": "object",
"required": [
"type",
"usergroup_id"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"usergroup"
]
},
"usergroup_id": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
}
]
}
}
}
},
{
"title": "Rich Text List",
"description": "Schema for a `rich text list` block.",
"version": "W",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"elements",
"style"
],
"properties": {
"type": {
"type": "string",
"enum": [
"rich_text_list"
]
},
"block_id": {
"title": "Block ID",
"description": "Schema for a `block_id` accepted by all blocks.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"style": {
"type": "string",
"enum": [
"bullet",
"ordered"
]
},
"indent": {
"type": "integer",
"default": 0,
"minimum": 0,
"maximum": 6
},
"elements": {
"type": "array",
"items": {
"title": "Rich Text Section",
"description": "Schema for a `rich text section` block.",
"version": "W",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"elements"
],
"properties": {
"type": {
"type": "string",
"enum": [
"rich_text_section"
]
},
"block_id": {
"title": "Block ID",
"description": "Schema for a `block_id` accepted by all blocks.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"elements": {
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "JSON Schema for an array of rich text elements",
"type": "array",
"items": {
"anyOf": [
{
"title": "Broadcast Mention",
"description": "Schema for a broadcast mention.",
"version": "W",
"type": "object",
"required": [
"type",
"range"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"broadcast"
]
},
"range": {
"type": "string",
"enum": [
"here",
"channel",
"everyone"
]
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Hex color",
"description": "Schema for a hex color.",
"version": "W",
"type": "object",
"required": [
"type",
"value"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"color"
]
},
"value": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Channel",
"description": "Schema for a channel mention.",
"version": "W",
"type": "object",
"required": [
"type",
"channel_id"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"channel"
]
},
"channel_id": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Date",
"description": "Schema for a date.",
"version": "W",
"type": "object",
"required": [
"type",
"timestamp",
"format"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"date"
]
},
"timestamp": {
"type": "integer"
},
"format": {
"type": "string",
"minLength": 1
},
"url": {
"type": "string",
"minLength": 1
},
"fallback": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Style",
"description": "Schema for a `style` object accepted by rich text blocks.",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"code": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Emoji",
"description": "Schema for an emoji mention.",
"version": "W",
"type": "object",
"required": [
"type",
"name"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"emoji"
]
},
"name": {
"type": "string",
"minLength": 1
},
"skin_tone": {
"type": "integer",
"minimum": 2,
"maximum": 6
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Link",
"description": "Schema for a link.",
"version": "W",
"type": "object",
"required": [
"type",
"url"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"link"
]
},
"url": {
"type": "string",
"minLength": 1
},
"text": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Style",
"description": "Schema for a `style` object accepted by rich text blocks.",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"code": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Team Mention",
"description": "Schema for a team mention.",
"version": "W",
"type": "object",
"required": [
"type",
"team_id"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"team"
]
},
"team_id": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Text",
"description": "Schema for a rich text element.",
"version": "W",
"type": "object",
"required": [
"type",
"text"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Style",
"description": "Schema for a `style` object accepted by rich text blocks.",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"code": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "User Mention",
"description": "Schema for a user mention.",
"version": "W",
"type": "object",
"required": [
"type",
"user_id"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"user"
]
},
"user_id": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Usergroup",
"description": "Schema for a usergroup mention.",
"version": "W",
"type": "object",
"required": [
"type",
"usergroup_id"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"usergroup"
]
},
"usergroup_id": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
}
]
}
}
}
}
}
}
},
{
"title": "Rich Text Quote",
"description": "Schema for a `rich text quote` block.",
"version": "W",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"elements"
],
"properties": {
"type": {
"type": "string",
"enum": [
"rich_text_quote"
]
},
"block_id": {
"title": "Block ID",
"description": "Schema for a `block_id` accepted by all blocks.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"elements": {
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "JSON Schema for an array of rich text elements",
"type": "array",
"items": {
"anyOf": [
{
"title": "Broadcast Mention",
"description": "Schema for a broadcast mention.",
"version": "W",
"type": "object",
"required": [
"type",
"range"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"broadcast"
]
},
"range": {
"type": "string",
"enum": [
"here",
"channel",
"everyone"
]
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Hex color",
"description": "Schema for a hex color.",
"version": "W",
"type": "object",
"required": [
"type",
"value"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"color"
]
},
"value": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Channel",
"description": "Schema for a channel mention.",
"version": "W",
"type": "object",
"required": [
"type",
"channel_id"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"channel"
]
},
"channel_id": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Date",
"description": "Schema for a date.",
"version": "W",
"type": "object",
"required": [
"type",
"timestamp",
"format"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"date"
]
},
"timestamp": {
"type": "integer"
},
"format": {
"type": "string",
"minLength": 1
},
"url": {
"type": "string",
"minLength": 1
},
"fallback": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Style",
"description": "Schema for a `style` object accepted by rich text blocks.",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"code": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Emoji",
"description": "Schema for an emoji mention.",
"version": "W",
"type": "object",
"required": [
"type",
"name"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"emoji"
]
},
"name": {
"type": "string",
"minLength": 1
},
"skin_tone": {
"type": "integer",
"minimum": 2,
"maximum": 6
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Link",
"description": "Schema for a link.",
"version": "W",
"type": "object",
"required": [
"type",
"url"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"link"
]
},
"url": {
"type": "string",
"minLength": 1
},
"text": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Style",
"description": "Schema for a `style` object accepted by rich text blocks.",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"code": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Team Mention",
"description": "Schema for a team mention.",
"version": "W",
"type": "object",
"required": [
"type",
"team_id"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"team"
]
},
"team_id": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Text",
"description": "Schema for a rich text element.",
"version": "W",
"type": "object",
"required": [
"type",
"text"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Style",
"description": "Schema for a `style` object accepted by rich text blocks.",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"code": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "User Mention",
"description": "Schema for a user mention.",
"version": "W",
"type": "object",
"required": [
"type",
"user_id"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"user"
]
},
"user_id": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Usergroup",
"description": "Schema for a usergroup mention.",
"version": "W",
"type": "object",
"required": [
"type",
"usergroup_id"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"usergroup"
]
},
"usergroup_id": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
}
]
}
}
}
},
{
"title": "Rich Text Preformatted",
"description": "Schema for a `rich text preformatted` block.",
"version": "W",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"elements"
],
"properties": {
"type": {
"type": "string",
"enum": [
"rich_text_preformatted"
]
},
"block_id": {
"title": "Block ID",
"description": "Schema for a `block_id` accepted by all blocks.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"elements": {
"type": "array",
"items": {
"anyOf": [
{
"title": "Text",
"description": "Schema for a rich text element.",
"version": "W",
"type": "object",
"required": [
"type",
"text"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Style",
"description": "Schema for a `style` object accepted by rich text blocks.",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"code": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Link",
"description": "Schema for a link.",
"version": "W",
"type": "object",
"required": [
"type",
"url"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"link"
]
},
"url": {
"type": "string",
"minLength": 1
},
"text": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Style",
"description": "Schema for a `style` object accepted by rich text blocks.",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"code": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
}
]
}
}
}
}
]
}
}
}
}
]
}
}
}
},
{
"title": "Rich Text Block",
"description": "Schema for a `rich text` block.",
"version": "W",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"elements"
],
"properties": {
"type": {
"type": "string",
"enum": [
"rich_text"
]
},
"block_id": {
"title": "Block ID",
"description": "Schema for a `block_id` accepted by all blocks.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"elements": {
"type": "array",
"items": {
"anyOf": [
{
"title": "Rich Text Section",
"description": "Schema for a `rich text section` block.",
"version": "W",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"elements"
],
"properties": {
"type": {
"type": "string",
"enum": [
"rich_text_section"
]
},
"block_id": {
"title": "Block ID",
"description": "Schema for a `block_id` accepted by all blocks.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"elements": {
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "JSON Schema for an array of rich text elements",
"type": "array",
"items": {
"anyOf": [
{
"title": "Broadcast Mention",
"description": "Schema for a broadcast mention.",
"version": "W",
"type": "object",
"required": [
"type",
"range"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"broadcast"
]
},
"range": {
"type": "string",
"enum": [
"here",
"channel",
"everyone"
]
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Hex color",
"description": "Schema for a hex color.",
"version": "W",
"type": "object",
"required": [
"type",
"value"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"color"
]
},
"value": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Channel",
"description": "Schema for a channel mention.",
"version": "W",
"type": "object",
"required": [
"type",
"channel_id"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"channel"
]
},
"channel_id": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Date",
"description": "Schema for a date.",
"version": "W",
"type": "object",
"required": [
"type",
"timestamp",
"format"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"date"
]
},
"timestamp": {
"type": "integer"
},
"format": {
"type": "string",
"minLength": 1
},
"url": {
"type": "string",
"minLength": 1
},
"fallback": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Style",
"description": "Schema for a `style` object accepted by rich text blocks.",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"code": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Emoji",
"description": "Schema for an emoji mention.",
"version": "W",
"type": "object",
"required": [
"type",
"name"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"emoji"
]
},
"name": {
"type": "string",
"minLength": 1
},
"skin_tone": {
"type": "integer",
"minimum": 2,
"maximum": 6
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Link",
"description": "Schema for a link.",
"version": "W",
"type": "object",
"required": [
"type",
"url"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"link"
]
},
"url": {
"type": "string",
"minLength": 1
},
"text": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Style",
"description": "Schema for a `style` object accepted by rich text blocks.",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"code": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Team Mention",
"description": "Schema for a team mention.",
"version": "W",
"type": "object",
"required": [
"type",
"team_id"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"team"
]
},
"team_id": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Text",
"description": "Schema for a rich text element.",
"version": "W",
"type": "object",
"required": [
"type",
"text"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Style",
"description": "Schema for a `style` object accepted by rich text blocks.",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"code": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "User Mention",
"description": "Schema for a user mention.",
"version": "W",
"type": "object",
"required": [
"type",
"user_id"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"user"
]
},
"user_id": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Usergroup",
"description": "Schema for a usergroup mention.",
"version": "W",
"type": "object",
"required": [
"type",
"usergroup_id"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"usergroup"
]
},
"usergroup_id": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
}
]
}
}
}
},
{
"title": "Rich Text List",
"description": "Schema for a `rich text list` block.",
"version": "W",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"elements",
"style"
],
"properties": {
"type": {
"type": "string",
"enum": [
"rich_text_list"
]
},
"block_id": {
"title": "Block ID",
"description": "Schema for a `block_id` accepted by all blocks.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"style": {
"type": "string",
"enum": [
"bullet",
"ordered"
]
},
"indent": {
"type": "integer",
"default": 0,
"minimum": 0,
"maximum": 6
},
"elements": {
"type": "array",
"items": {
"title": "Rich Text Section",
"description": "Schema for a `rich text section` block.",
"version": "W",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"elements"
],
"properties": {
"type": {
"type": "string",
"enum": [
"rich_text_section"
]
},
"block_id": {
"title": "Block ID",
"description": "Schema for a `block_id` accepted by all blocks.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"elements": {
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "JSON Schema for an array of rich text elements",
"type": "array",
"items": {
"anyOf": [
{
"title": "Broadcast Mention",
"description": "Schema for a broadcast mention.",
"version": "W",
"type": "object",
"required": [
"type",
"range"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"broadcast"
]
},
"range": {
"type": "string",
"enum": [
"here",
"channel",
"everyone"
]
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Hex color",
"description": "Schema for a hex color.",
"version": "W",
"type": "object",
"required": [
"type",
"value"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"color"
]
},
"value": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Channel",
"description": "Schema for a channel mention.",
"version": "W",
"type": "object",
"required": [
"type",
"channel_id"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"channel"
]
},
"channel_id": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Date",
"description": "Schema for a date.",
"version": "W",
"type": "object",
"required": [
"type",
"timestamp",
"format"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"date"
]
},
"timestamp": {
"type": "integer"
},
"format": {
"type": "string",
"minLength": 1
},
"url": {
"type": "string",
"minLength": 1
},
"fallback": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Style",
"description": "Schema for a `style` object accepted by rich text blocks.",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"code": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Emoji",
"description": "Schema for an emoji mention.",
"version": "W",
"type": "object",
"required": [
"type",
"name"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"emoji"
]
},
"name": {
"type": "string",
"minLength": 1
},
"skin_tone": {
"type": "integer",
"minimum": 2,
"maximum": 6
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Link",
"description": "Schema for a link.",
"version": "W",
"type": "object",
"required": [
"type",
"url"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"link"
]
},
"url": {
"type": "string",
"minLength": 1
},
"text": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Style",
"description": "Schema for a `style` object accepted by rich text blocks.",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"code": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Team Mention",
"description": "Schema for a team mention.",
"version": "W",
"type": "object",
"required": [
"type",
"team_id"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"team"
]
},
"team_id": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Text",
"description": "Schema for a rich text element.",
"version": "W",
"type": "object",
"required": [
"type",
"text"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"text"
]
},
"text": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Style",
"description": "Schema for a `style` object accepted by rich text blocks.",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"code": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "User Mention",
"description": "Schema for a user mention.",
"version": "W",
"type": "object",
"required": [
"type",
"user_id"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"user"
]
},
"user_id": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Usergroup",
"description": "Schema for a usergroup mention.",
"version": "W",
"type": "object",
"required": [
"type",
"usergroup_id"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"usergroup"
]
},
"usergroup_id": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
}
]
}
}
}
}
}
}
},
{
"title": "Rich Text Quote",
"description": "Schema for a `rich text quote` block.",
"version": "W",
"type": "object",
"additionalProperties": false,
"required": [
"type",
"elements"
],
"properties": {
"type": {
"type": "string",
"enum": [
"rich_text_quote"
]
},
"block_id": {
"title": "Block ID",
"description": "Schema for a `block_id` accepted by all blocks.",
"version": "1",
"type": "string",
"minLength": 1,
"maxLength": 255,
"sanitize": {
"multiline": true
}
},
"elements": {
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "JSON Schema for an array of rich text elements",
"type": "array",
"items": {
"anyOf": [
{
"title": "Broadcast Mention",
"description": "Schema for a broadcast mention.",
"version": "W",
"type": "object",
"required": [
"type",
"range"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"broadcast"
]
},
"range": {
"type": "string",
"enum": [
"here",
"channel",
"everyone"
]
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Hex color",
"description": "Schema for a hex color.",
"version": "W",
"type": "object",
"required": [
"type",
"value"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"color"
]
},
"value": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Channel",
"description": "Schema for a channel mention.",
"version": "W",
"type": "object",
"required": [
"type",
"channel_id"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"channel"
]
},
"channel_id": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Limited Style",
"description": "Schema for a limited `style` object (all styles excluding `code`).",
"version": "W",
"type": "object",
"additionalProperties": false,
"properties": {
"bold": {
"type": "boolean"
},
"italic": {
"type": "boolean"
},
"strike": {
"type": "boolean"
},
"highlight": {
"type": "boolean"
}
}
}
}
},
{
"title": "Date",
"description": "Schema for a date.",
"version": "W",
"type": "object",
"required": [
"type",
"timestamp",
"format"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"date"
]
},
"timestamp": {
"type": "integer"
},
"format": {
"type": "string",
"minLength": 1
},
"url": {
"type": "string",
"minLength": 1
},
"fallback": {
"type": "string",
"minLength": 1
},
"style": {
"title": "Style",
"description": "Schema for a `style` object accepted by rich text blocks.",
"ve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment