From 7e7feadcebbccf6e44e6251e73c026d650e42bc5 Mon Sep 17 00:00:00 2001 From: Maksymilian Szokalski <42069493+illunix@users.noreply.github.com> Date: Tue, 19 Mar 2024 16:24:42 +0100 Subject: [PATCH 1/2] Update requestInformation.ts --- packages/abstractions/src/requestInformation.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/abstractions/src/requestInformation.ts b/packages/abstractions/src/requestInformation.ts index 722304f1d..2783a7cfc 100644 --- a/packages/abstractions/src/requestInformation.ts +++ b/packages/abstractions/src/requestInformation.ts @@ -1,3 +1,4 @@ +import { Guid } from 'guid-typescript'; import { trace } from "@opentelemetry/api"; import { StdUriTemplate } from "@std-uritemplate/std-uritemplate"; @@ -252,6 +253,8 @@ export class RequestInformation implements RequestInformationSetContent { writer.writeTimeOnlyValue(undefined, value as any as TimeOnly); } else if (value instanceof Duration) { writer.writeDurationValue(undefined, value as any as Duration); + } else if (value instanceof Guid) { + writer.writeStringValue(undefined, value as any as string); } else if (valueType === "number") { writer.writeNumberValue(undefined, value as any as number); } else if (Array.isArray(value)) { From c3e218dcaa2d39e0e0627a2f8258bc1d0af9ad2c Mon Sep 17 00:00:00 2001 From: Maksymilian Szokalski <42069493+illunix@users.noreply.github.com> Date: Sun, 24 Mar 2024 00:45:41 +0100 Subject: [PATCH 2/2] Update packages/abstractions/src/requestInformation.ts Co-authored-by: Vincent Biret --- packages/abstractions/src/requestInformation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/abstractions/src/requestInformation.ts b/packages/abstractions/src/requestInformation.ts index 2783a7cfc..1cc238684 100644 --- a/packages/abstractions/src/requestInformation.ts +++ b/packages/abstractions/src/requestInformation.ts @@ -254,7 +254,7 @@ export class RequestInformation implements RequestInformationSetContent { } else if (value instanceof Duration) { writer.writeDurationValue(undefined, value as any as Duration); } else if (value instanceof Guid) { - writer.writeStringValue(undefined, value as any as string); + writer.writeGuidValue(undefined, value as any as Guid); } else if (valueType === "number") { writer.writeNumberValue(undefined, value as any as number); } else if (Array.isArray(value)) {