diff --git a/sdk/communication/communication-chat/src/generated/src/models/parameters.ts b/sdk/communication/communication-chat/src/generated/src/models/parameters.ts index c4aa3b07905b..78187dd31ad5 100644 --- a/sdk/communication/communication-chat/src/generated/src/models/parameters.ts +++ b/sdk/communication/communication-chat/src/generated/src/models/parameters.ts @@ -183,7 +183,7 @@ export const createChatThreadRequest: OperationParameter = { export const repeatabilityRequestId: OperationParameter = { parameterPath: ["options", "repeatabilityRequestId"], mapper: { - serializedName: "repeatability-Request-Id", + serializedName: "repeatability-request-id", type: { name: "String" } diff --git a/sdk/communication/communication-chat/swagger/README.md b/sdk/communication/communication-chat/swagger/README.md index 61b15286d146..0b5b1b255aa3 100644 --- a/sdk/communication/communication-chat/swagger/README.md +++ b/sdk/communication/communication-chat/swagger/README.md @@ -11,7 +11,7 @@ description: Chat Client generate-metadata: false license-header: MICROSOFT_MIT_NO_VERSION output-folder: ../src/generated -input-file: https://int.chatgateway.trafficmanager.net/swagger/2021-03-07/swagger.json +input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/communication/data-plane/Microsoft.CommunicationServicesChat/stable/2021-03-07/communicationserviceschat.json model-date-time-as-string: false optional-response-headers: true use-extension: diff --git a/sdk/communication/communication-chat/test/chatClient.mocked.spec.ts b/sdk/communication/communication-chat/test/chatClient.mocked.spec.ts index aa359e6a31bc..d7e8802d5d4b 100644 --- a/sdk/communication/communication-chat/test/chatClient.mocked.spec.ts +++ b/sdk/communication/communication-chat/test/chatClient.mocked.spec.ts @@ -60,7 +60,7 @@ describe("[Mocked] ChatClient", async () => { assert.equal(request.url, `${baseUri}/chat/threads?api-version=${API_VERSION}`); assert.equal(request.method, "POST"); assert.deepEqual(JSON.parse(request.body), sendRequest); - assert.isNotEmpty(request.headers.get("repeatability-Request-Id")); + assert.isNotEmpty(request.headers.get("repeatability-request-id")); }); it("makes successful list threads request", async () => {