From 3fcc13ce26e7e0e49f27f4c4b3a928009661820b Mon Sep 17 00:00:00 2001 From: Darren Korman Date: Tue, 1 Jun 2021 23:13:26 -0700 Subject: [PATCH 1/3] Updating schema for ChatMessageReceived and ChatMessageEdited EventGrid events to add metadata property. --- .../2018-01-01/AzureCommunicationServices.json | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json index 41a1140046ba..00713811e663 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json @@ -18,6 +18,13 @@ "messageBody": { "description": "The body of the chat message", "type": "string" + }, + "metadata": { + "description": "The chat message metadata", + "type": "object", + "additionalProperties": { + "type": "string" + } } } }, @@ -47,7 +54,13 @@ "description": "The body of the chat message", "type": "string" }, - "editTime": { + "metadata": { + "description": "The chat message metadata", + "type": "object", + "additionalProperties": { + "type": "string" + } + },"editTime": { "description": "The time at which the message was edited", "format": "date-time", "type": "string" From 4fa7f29cbc35f17e847cc2d5ba49169a4a619b76 Mon Sep 17 00:00:00 2001 From: Darren Korman Date: Wed, 2 Jun 2021 16:09:07 -0700 Subject: [PATCH 2/3] Applying Prettier formatting --- .../stable/2018-01-01/AzureCommunicationServices.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json index 00713811e663..59081efa9a39 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json @@ -60,7 +60,8 @@ "additionalProperties": { "type": "string" } - },"editTime": { + }, + "editTime": { "description": "The time at which the message was edited", "format": "date-time", "type": "string" From 848f2028815ce0c630e5ff87080ec7d5928ad7a7 Mon Sep 17 00:00:00 2001 From: Darren Korman Date: Thu, 10 Jun 2021 14:48:51 -0700 Subject: [PATCH 3/3] Adding metadata to InThread chat events. --- .../2018-01-01/AzureCommunicationServices.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json index 59081efa9a39..d352755c3a5e 100644 --- a/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json +++ b/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json @@ -39,6 +39,13 @@ "messageBody": { "description": "The body of the chat message", "type": "string" + }, + "metadata": { + "description": "The chat message metadata", + "type": "object", + "additionalProperties": { + "type": "string" + } } } }, @@ -80,6 +87,13 @@ "description": "The body of the chat message", "type": "string" }, + "metadata": { + "description": "The chat message metadata", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, "editTime": { "description": "The time at which the message was edited", "format": "date-time",