From e66bbef5cfaa7e1234882512ceee5b40741ef58f Mon Sep 17 00:00:00 2001 From: l0lawrence Date: Fri, 19 May 2023 11:21:59 -0700 Subject: [PATCH 1/2] encode --- specification/eventgrid/Azure.Messaging.EventGrid/main.tsp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp b/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp index 46670a88d46c..cf7da0827c82 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp @@ -216,8 +216,9 @@ namespace Azure.Messaging.EventGrid { maxEvents?: int32 = 1; @doc("Max wait time value for receive operation in Seconds. It is the time in seconds that the server approximately waits for the availability of an event and responds to the request. If an event is available, the broker responds immediately to the client. Minimum value is 10 seconds, while maximum value is 120 seconds. If not specified, the default value is 60 seconds.") + @encode("seconds", int32) @query({name:"maxWaitTime"}) - maxWaitTime?: int32 = 60; + maxWaitTime?: duration = 60; }, ReceiveResult>; // Acknowledge Operation: From 46e1b5702ecb3c2e79286049149e70748a40b123 Mon Sep 17 00:00:00 2001 From: l0lawrence Date: Fri, 19 May 2023 11:32:29 -0700 Subject: [PATCH 2/2] remove num default on duration --- 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 cf7da0827c82..1381287b56bd 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp @@ -218,7 +218,7 @@ namespace Azure.Messaging.EventGrid { @doc("Max wait time value for receive operation in Seconds. It is the time in seconds that the server approximately waits for the availability of an event and responds to the request. If an event is available, the broker responds immediately to the client. Minimum value is 10 seconds, while maximum value is 120 seconds. If not specified, the default value is 60 seconds.") @encode("seconds", int32) @query({name:"maxWaitTime"}) - maxWaitTime?: duration = 60; + maxWaitTime?: duration; }, ReceiveResult>; // Acknowledge Operation: