From ac93669ec883211f15c01dfff094d303f7c296e3 Mon Sep 17 00:00:00 2001 From: Dapeng Zhang Date: Wed, 31 Jul 2024 14:42:48 +0800 Subject: [PATCH] update the gen sample to ensure it does not change --- packages/samples/common-types/gen.ts | 1 + .../generated-defs/Azure.Core.Foundations.Private.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/samples/common-types/gen.ts b/packages/samples/common-types/gen.ts index 24dccbfb67..69936f2b00 100644 --- a/packages/samples/common-types/gen.ts +++ b/packages/samples/common-types/gen.ts @@ -83,6 +83,7 @@ function cleanupDocument(original: OpenAPI2Document): OpenAPI2Document { replaceUuidRefs(document, "Azure.Core.uuid"); replaceUuidRefs(document, "Azure.Core.azureLocation"); + replaceUuidRefs(document, "Azure.Core.resourceType"); return document; } diff --git a/packages/typespec-azure-core/generated-defs/Azure.Core.Foundations.Private.ts b/packages/typespec-azure-core/generated-defs/Azure.Core.Foundations.Private.ts index 67a9805313..46e19f6d8b 100644 --- a/packages/typespec-azure-core/generated-defs/Azure.Core.Foundations.Private.ts +++ b/packages/typespec-azure-core/generated-defs/Azure.Core.Foundations.Private.ts @@ -79,5 +79,5 @@ export type EnsureVerbDecorator = ( export type DefaultFinalStateViaDecorator = ( context: DecoratorContext, target: Operation, - states: readonly ("operation-location" | "location" | "azure-async-operation")[] + states: unknown ) => void;