From d4f8e6b1cc98bd3ea53daeb758cf831b785d9508 Mon Sep 17 00:00:00 2001 From: Adam Chalkley Date: Wed, 20 Jul 2022 05:16:31 -0500 Subject: [PATCH] Fix invalid JSON key name for Element.URL field Update the JSON key name to match the field name. I mistakenly used the property type for the field instead of the field name itself. refs GH-179 --- adaptivecard/adaptivecard.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adaptivecard/adaptivecard.go b/adaptivecard/adaptivecard.go index 3eef2a1..f839af6 100644 --- a/adaptivecard/adaptivecard.go +++ b/adaptivecard/adaptivecard.go @@ -478,7 +478,7 @@ type Element struct { // // https://adaptivecards.io/explorer/Image.html // https://adaptivecards.io/explorer/ImageSet.html - URL string `json:"uri,omitempty"` + URL string `json:"url,omitempty"` // Size controls the size of text within a TextBlock element. Size string `json:"size,omitempty"`