From 9d47f2ba398d3cade669c0a29a4db4ebac3d69b1 Mon Sep 17 00:00:00 2001 From: "Paul Campbell (CMD)" Date: Thu, 23 May 2019 15:29:39 -0700 Subject: [PATCH] [Schema] Add ActionSet Spec #877 --- schemas/adaptive-card.json | 24 +++++++++++++++++++ .../schema-explorer-toc.yml | 1 + 2 files changed, 25 insertions(+) diff --git a/schemas/adaptive-card.json b/schemas/adaptive-card.json index c6fcfc06ab..d51d53bac5 100644 --- a/schemas/adaptive-card.json +++ b/schemas/adaptive-card.json @@ -251,11 +251,35 @@ }, { "$ref": "#/definitions/Input.ChoiceSet" + }, + { + "$ref": "#/definitions/ActionSet" } ] } ] }, + "ActionSet": { + "additionalProperties": true, + "type": "object", + "description": "Allow authors to place one or more 'action bars' anywhere within the card body", + "version": "1.2", + "allOf": [ + { + "$ref": "#/definitions/CardElement" + } + ], + "properties": { + "items": { + "description": "The actions to include in the `ActionSet`", + "$ref": "#/definitions/Actions" + } + }, + "required": [ + "type", + "items" + ] + }, "Input.Choice": { "type": "object", "description": "Describes a choice for use in a ChoiceSet.", diff --git a/source/nodejs/adaptivecards-site/schema-explorer-toc.yml b/source/nodejs/adaptivecards-site/schema-explorer-toc.yml index 7ee33b4b86..2fc8908112 100644 --- a/source/nodejs/adaptivecards-site/schema-explorer-toc.yml +++ b/source/nodejs/adaptivecards-site/schema-explorer-toc.yml @@ -6,6 +6,7 @@ - Media - MediaSource - Containers: + - ActionSet - Container - ColumnSet - Column