From b50677fd0b9d49b162ad3ffa44eb35d926988ed6 Mon Sep 17 00:00:00 2001 From: Nate Kimball <97469387+natekimball-msft@users.noreply.github.com> Date: Mon, 8 Jul 2024 21:13:24 -0700 Subject: [PATCH] [communication] Update examples to use string for retry-after (#29739) - Required by autorest schema for examples --- .../preview/2021-10-01-preview/examples/GetSendStatus.json | 2 +- .../Email/preview/2021-10-01-preview/examples/SendEmail.json | 2 +- .../examples/GetOperationStatusReturnsNonTerminalStatus.json | 2 +- .../Email/preview/2023-01-15-preview/examples/SendEmail.json | 2 +- .../examples/GetOperationStatusReturnsNonTerminalStatus.json | 2 +- .../data-plane/Email/stable/2023-03-31/examples/SendEmail.json | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/communication/data-plane/Email/preview/2021-10-01-preview/examples/GetSendStatus.json b/specification/communication/data-plane/Email/preview/2021-10-01-preview/examples/GetSendStatus.json index 31bb078abc0e..554b1288afe3 100644 --- a/specification/communication/data-plane/Email/preview/2021-10-01-preview/examples/GetSendStatus.json +++ b/specification/communication/data-plane/Email/preview/2021-10-01-preview/examples/GetSendStatus.json @@ -8,7 +8,7 @@ "responses": { "200": { "headers": { - "Retry-After": 100 + "Retry-After": "100" }, "body": { "messageId": "F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4", diff --git a/specification/communication/data-plane/Email/preview/2021-10-01-preview/examples/SendEmail.json b/specification/communication/data-plane/Email/preview/2021-10-01-preview/examples/SendEmail.json index 331b415fa3a9..1c3ac170b61a 100644 --- a/specification/communication/data-plane/Email/preview/2021-10-01-preview/examples/SendEmail.json +++ b/specification/communication/data-plane/Email/preview/2021-10-01-preview/examples/SendEmail.json @@ -81,7 +81,7 @@ "headers": { "Repeatability-Result": "accepted", "Operation-Location": "https://contoso.westus.communications.azure.com//email/status/8540c0de-899f-5cce-acb5-3ec493af3800?api-version=2021-10-01-preview", - "Retry-After": 1, + "Retry-After": "1", "x-ms-request-id": "8540c0de-899f-5cce-acb5-3ec493af3800" } } diff --git a/specification/communication/data-plane/Email/preview/2023-01-15-preview/examples/GetOperationStatusReturnsNonTerminalStatus.json b/specification/communication/data-plane/Email/preview/2023-01-15-preview/examples/GetOperationStatusReturnsNonTerminalStatus.json index b41652df6f31..b069db247ffa 100644 --- a/specification/communication/data-plane/Email/preview/2023-01-15-preview/examples/GetOperationStatusReturnsNonTerminalStatus.json +++ b/specification/communication/data-plane/Email/preview/2023-01-15-preview/examples/GetOperationStatusReturnsNonTerminalStatus.json @@ -8,7 +8,7 @@ "responses": { "200": { "headers": { - "retry-after": 100 + "retry-after": "100" }, "body": { "id": "F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4", diff --git a/specification/communication/data-plane/Email/preview/2023-01-15-preview/examples/SendEmail.json b/specification/communication/data-plane/Email/preview/2023-01-15-preview/examples/SendEmail.json index b2aa331b52d2..d28653a9cb97 100644 --- a/specification/communication/data-plane/Email/preview/2023-01-15-preview/examples/SendEmail.json +++ b/specification/communication/data-plane/Email/preview/2023-01-15-preview/examples/SendEmail.json @@ -73,7 +73,7 @@ "202": { "headers": { "Operation-Location": "https://contoso.westus.communications.azure.com//emails/operations/8540c0de-899f-5cce-acb5-3ec493af3800?api-version=2023-01-15-preview", - "retry-after": 20 + "retry-after": "20" }, "body": { "id": "8540c0de-899f-5cce-acb5-3ec493af3800", diff --git a/specification/communication/data-plane/Email/stable/2023-03-31/examples/GetOperationStatusReturnsNonTerminalStatus.json b/specification/communication/data-plane/Email/stable/2023-03-31/examples/GetOperationStatusReturnsNonTerminalStatus.json index 294c5ff9ac61..b673bdfc234a 100644 --- a/specification/communication/data-plane/Email/stable/2023-03-31/examples/GetOperationStatusReturnsNonTerminalStatus.json +++ b/specification/communication/data-plane/Email/stable/2023-03-31/examples/GetOperationStatusReturnsNonTerminalStatus.json @@ -8,7 +8,7 @@ "responses": { "200": { "headers": { - "retry-after": 100 + "retry-after": "100" }, "body": { "id": "F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4", diff --git a/specification/communication/data-plane/Email/stable/2023-03-31/examples/SendEmail.json b/specification/communication/data-plane/Email/stable/2023-03-31/examples/SendEmail.json index 4698fe5905f9..95c89220ce98 100644 --- a/specification/communication/data-plane/Email/stable/2023-03-31/examples/SendEmail.json +++ b/specification/communication/data-plane/Email/stable/2023-03-31/examples/SendEmail.json @@ -73,7 +73,7 @@ "202": { "headers": { "Operation-Location": "https://contoso.westus.communications.azure.com//emails/operations/8540c0de-899f-5cce-acb5-3ec493af3800?api-version=2023-03-31", - "retry-after": 20 + "retry-after": "20" }, "body": { "id": "8540c0de-899f-5cce-acb5-3ec493af3800",