AdaptiveChars v1.2 架构更新

AdaptiveChars v1.2 Schema Updates

我看到 AdaptiveCards v1.2.0 已于几天前发布。它被描述为为 ChoiceSet 实现了 "wrap" 属性;但是,我在下载包的架构中看不到这个 属性 。我们能否确认这实际上已在 1.2 中实现并正常工作?由于其他承诺,我无法对此进行测试,但我正在与需要此 属性 的客户合作。 这是以下 1.2 版本中的第 14 项: https://github.com/microsoft/AdaptiveCards/releases/tag/v1.2.0

在 1.2.0 源代码中,这里是来自 schemas/adaptive-card 的 ChoiceSet 架构。json:

        "Input.ChoiceSet": {
            "additionalProperties": true,
            "type": "object",
            "description": "Allows a user to input a Choice.",
            "allOf": [
                {
                    "$ref": "#/definitions/CardElement"
                }
            ],
            "properties": {
                "choices": {
                    "type": "array",
                    "description": "`Choice` options.",
                    "items": {
                        "$ref": "#/definitions/Input.Choice"
                    }
                },
                "id": {
                    "type": "string",
                    "description": "Unique identifier for the value. Used to identify collected input when the Submit action is performed."
                },
                "isMultiSelect": {
                    "type": "boolean",
                    "description": "Allow multiple choices to be selected.",
                    "default": false
                },
                "style": {
                    "$ref": "#/definitions/ChoiceInputStyle"
                },
                "type": {
                    "description": "Must be `\"Input.ChoiceSet\"`.",
                    "enum": [
                        "Input.ChoiceSet"
                    ],
                    "type": "string"
                },
                "value": {
                    "type": "string",
                    "description": "The initial choice (or set of choices) that should be selected. For multi-select, specify a comma-separated string of values."
                }
            },
            "required": [
                "type",
                "id",
                "choices"
            ]
        },

我没有在此处看到 "wrap" 属性。

Microsoft Teams 目前不支持 Adaptive Cards 1.2。

感谢您询问此事。我是 Adaptive Cards 团队的 Andrew。

您在 6 月初查看的模式文件似乎是旧的 1.1 模式。可能当时我们还没有发布 1.2 模式。

这是新的 1.2 模式,Input.ChoiceSet 上确实有 wraphttps://adaptivecards.io/schemas/1.2.0/adaptive-card.json

此外,在我们的文档中,您可以看到 wrap 属性:https://adaptivecards.io/explorer/Input.ChoiceSet.html

如果您还有其他问题,请告诉我们!