From a5296ed2d9b56108107508241c39b281e87d5dce Mon Sep 17 00:00:00 2001 From: l0lawrence Date: Wed, 12 Apr 2023 19:01:57 -0700 Subject: [PATCH 1/2] breaking changes with april release of typespec --- .../eventgrid/Azure.Messaging.EventGrid/main.tsp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp b/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp index c641d6a8b303..5f513f453d01 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp @@ -3,7 +3,6 @@ import "@typespec/rest"; import "@typespec/versioning"; import "@azure-tools/typespec-autorest"; import "@azure-tools/typespec-azure-core"; -import "@azure-tools/typespec-client-generator-core"; enum ServiceApiVersions { v2023_06_01_preview: "2023-06-01-preview" @@ -48,10 +47,8 @@ namespace Azure.Messaging.EventGrid { using TypeSpec.Versioning; using Azure.Core; using Azure.Core.Foundations; - using Azure.ClientGenerator.Core; @doc("Properties of an event published to an Azure Messaging EventGrid Namespace topic using the CloudEvent 1.0 Schema.") - @internal model CloudEventEvent { @doc("An identifier for the event. The combination of id and source must be unique for each distinct event.") id: string; @@ -69,7 +66,7 @@ namespace Azure.Messaging.EventGrid { type: string; @doc("The time (in UTC) the event was generated, in RFC3339 format.") - time?: zonedDateTime; + time?: utcDateTime; @doc("The version of the CloudEvents specification which the event uses.") specversion: string; @@ -97,7 +94,6 @@ namespace Azure.Messaging.EventGrid { } @doc("Receive operation details per Cloud Event.") - @internal model ReceiveDetails { @doc("The Event Broker details.") brokerProperties: BrokerProperties; @@ -143,7 +139,6 @@ namespace Azure.Messaging.EventGrid { @doc("Publish Single Cloud Event to namespace topic.") @route("/topics/{topicName}:publish", {shared: true}) - @internal @post op PublishCloudEvent is Azure.Core.RpcOperation<{ @doc("content type") @header("content-type") @@ -161,7 +156,6 @@ namespace Azure.Messaging.EventGrid { @doc("Publish Batch of Cloud Events to namespace topic.") @route("/topics/{topicName}:publish", {shared: true}) - @internal @post op PublishBatchOfCloudEvents is Azure.Core.RpcOperation<{ @doc("content type") @header("content-type") @@ -178,7 +172,6 @@ namespace Azure.Messaging.EventGrid { @doc("Receive Batch of Cloud Events from the Event Subscription.") @route("/topics/{topicName}/eventsubscriptions/{eventSubscriptionName}:receive") - @internal @post op ReceiveBatchOfCloudEvents is Azure.Core.RpcOperation<{ @doc("Topic Name.") @path From 34216093b9f2dcfa628082c8476fa7f479d48189 Mon Sep 17 00:00:00 2001 From: l0lawrence Date: Thu, 13 Apr 2023 09:01:43 -0700 Subject: [PATCH 2/2] unknown type --- specification/eventgrid/Azure.Messaging.EventGrid/main.tsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp b/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp index 5f513f453d01..3598a068698c 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp @@ -57,7 +57,7 @@ namespace Azure.Messaging.EventGrid { source: string; @doc("Event data specific to the event type.") - data?: object; + data?: unknown; @doc("Event data specific to the event type, encoded as a base64 string.") data_base64?: bytes;