Skip to content

Commit

Permalink
Update AdaptiveCardMaxVersion to 1.5
Browse files Browse the repository at this point in the history
Based on current documentation and brief testing, schema
version 1.5 appears to now be supported by Teams Incoming Webhook
Connectors.

refs GH-205
  • Loading branch information
atc0005 committed Mar 14, 2023
1 parent a89c838 commit 59bc9f4
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions adaptivecard/adaptivecard.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,28 +39,9 @@ const (
// AdaptiveCardMaxVersion represents the highest supported version of the
// Adaptive Card schema supported in Microsoft Teams messages.
//
// Version 1.3 is the highest supported for user-generated cards.
// https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/cards-reference#support-for-adaptive-cards
// https://adaptivecards.io/designer
//
// Version 1.4 is when Action.Execute was introduced.
//
// Per this doc:
// https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/cards-reference#support-for-adaptive-cards
//
// the "Action.Execute" action is supported:
//
// "For Adaptive Cards in Incoming Webhooks, all native Adaptive Card
// schema elements, except Action.Submit, are fully supported. The
// supported actions are Action.OpenURL, Action.ShowCard,
// Action.ToggleVisibility, and Action.Execute."
//
// Per this doc, Teams MAY support the Action.Execute action:
//
// https://docs.microsoft.com/en-us/adaptive-cards/authoring-cards/universal-action-model#schema
//
// AdaptiveCardMaxVersion float64 = 1.4
AdaptiveCardMaxVersion float64 = 1.3
AdaptiveCardMaxVersion float64 = 1.5
AdaptiveCardMinVersion float64 = 1.0
AdaptiveCardVersionTmpl string = "%0.1f"
)
Expand Down

0 comments on commit 59bc9f4

Please sign in to comment.