如何在 Teams Manifest 的 inputType 'choiceset' 上设置硬编码值?

How to set hardcoded value on inputType 'choiceset' in Teams Manifest?

我想知道是否有解决方法可以在 MS Teams Manifest 中为输入类型选择集设置选项

您可以在 MS Teams 清单文件中设置的示例。

 {
    "name": "options",
    "title": "Options",
    "description": "Demo Options",
    "inputType": "choiceset"
 }

我没有在互联网上找到答案,但是当我试图操纵 Teams Manifest 时我发现了答案,我发现 choices 有一个 Intillecense,它是一个数组。

这是示例清单 JSON。

{
    "name": "option",
    "title": "opption",
    "description": "Demo Option",
    "inputType": "choiceset",
    "choices": [
       {
          "title": "option1",
          "value": "1"
       },
       {
          "title": "option2",
          "value": "2"
       }
    ]
}