@nju33/json-schema
Version:
[](https://www.npmjs.com/package/@nju33/json-schema)
116 lines (115 loc) • 2.74 kB
JSON
{
"definitions": {
"channel": {
"description": "投稿先となるチャンネルID",
"type": "string"
},
"text": {
"description": "投稿内容",
"type": "string"
},
"attachments": {
"type": "array",
"items": {
"$ref": "../../message/attachment.json#/definitions/attachment"
}
},
"as_user": {
"type": "boolean",
"default": false
},
"blocks": {
"type": "array",
"items": {
"$ref": "../../message/block.json#/definitions/block"
}
},
"icon_emoji": {
"type": "string",
"examples": [":+1:", ":smile:", ":tada:"]
},
"icon_url": {
"$ref": "../../../pattern.json#/definitions/string/url"
},
"link_names": {
"type": "boolean"
},
"mrkdwn": {
"type": "boolean",
"default": true
},
"parse": {
"description": "Change how messages are treated. Defaults to none",
"type": "string",
"examples": ["full"]
},
"reply_broadcast": {
"type": "boolean"
},
"thread_ts": {
"description": "Provide another message's ts value to make this message a reply. Avoid using a reply's ts value; use its parent instead",
"type": "string",
"examples": ["1234567890.123456"]
},
"unfurl_links": {
"type": "boolean"
},
"unfurl_media": {
"type": "boolean"
},
"username": {
"type": "string",
"examples": ["My Bot"]
},
"postMessage": {
"type": "object",
"properties": {
"channel": {
"$ref": "#/definitions/channel"
},
"text": {
"$ref": "#/definitions/text"
},
"as_user": {
"$ref": "#/definitions/as_user"
},
"attachments": {
"$ref": "#/definitions/attachments"
},
"blocks": {
"$ref": "#/definitions/blocks"
},
"icon_emoji": {
"$ref": "#/definitions/icon_emoji"
},
"icon_url": {
"$ref": "#/definitions/icon_url"
},
"link_names": {
"$ref": "#/definitions/link_names"
},
"mrkdwn": {
"$ref": "#/definitions/mrkdwn"
},
"parse": {
"$ref": "#/definitions/parse"
},
"reply_broadcast": {
"$ref": "#/definitions/reply_broadcast"
},
"thread_ts": {
"$ref": "#/definitions/thread_ts"
},
"unfurl_links": {
"$ref": "#/definitions/unfurl_links"
},
"unfurl_media": {
"$ref": "#/definitions/unfurl_media"
},
"username": {
"$ref": "#/definitions/username"
}
}
}
}
}