SlackCodeField#

pydantic model safir.slack.blockkit.SlackCodeField#

An attachment in a Slack message with a heading and text body.

Intended for use in the fields portion of a Block Kit message. If the formatted output is longer than 2000 characters, it will be truncated to avoid the strict upper limit imposed by Slack.

Parameters:

data (Any) –

Show JSON schema
{
   "title": "SlackCodeField",
   "description": "An attachment in a Slack message with a heading and text body.\n\nIntended for use in the ``fields`` portion of a Block Kit message. If\nthe formatted output is longer than 2000 characters, it will be truncated\nto avoid the strict upper limit imposed by Slack.",
   "type": "object",
   "properties": {
      "heading": {
         "title": "Heading",
         "type": "string"
      },
      "code": {
         "title": "Code",
         "type": "string"
      }
   },
   "required": [
      "heading",
      "code"
   ]
}

Fields:

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.