From 838efc6b68300ab5736cc22d8eb1cb426bcafb72 Mon Sep 17 00:00:00 2001 From: Mike Harder Date: Thu, 1 Jun 2023 18:11:59 -0700 Subject: [PATCH] [TypeSpec] Remove "./" from tspconfig.yaml (#24199) - Prefix is unnecessary and clutters config --- .../cognitiveservices/AnomalyDetector/tspconfig.yaml | 4 ++-- specification/cognitiveservices/ContentSafety/tspconfig.yaml | 2 +- .../HealthInsights/healthinsights.openapi/tspconfig.yaml | 4 ++-- .../contosowidgetmanager/Contoso.WidgetManager/tspconfig.yaml | 4 ++-- .../eventgrid/Azure.Messaging.EventGrid/tspconfig.yaml | 2 +- .../ServiceNetworking.Management/tspconfig.yaml | 4 ++-- .../translation/Azure.AI.TextTranslation/tspconfig.yaml | 4 ++-- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/specification/cognitiveservices/AnomalyDetector/tspconfig.yaml b/specification/cognitiveservices/AnomalyDetector/tspconfig.yaml index e3ff129b9811..235f8c866c5d 100644 --- a/specification/cognitiveservices/AnomalyDetector/tspconfig.yaml +++ b/specification/cognitiveservices/AnomalyDetector/tspconfig.yaml @@ -14,8 +14,8 @@ emit: [ ] options: "@azure-tools/typespec-autorest": - azure-resource-provider-folder: "./data-plane" - examples-directory: ./examples + azure-resource-provider-folder: "data-plane" + examples-directory: examples omit-unreachable-types: true output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/openapi.json" emitter-output-dir: "{project-root}/../" diff --git a/specification/cognitiveservices/ContentSafety/tspconfig.yaml b/specification/cognitiveservices/ContentSafety/tspconfig.yaml index adf734570bd8..4f54809d0a01 100644 --- a/specification/cognitiveservices/ContentSafety/tspconfig.yaml +++ b/specification/cognitiveservices/ContentSafety/tspconfig.yaml @@ -16,7 +16,7 @@ options: emitter-output-dir: "{project-root}/../" output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/contentsafety.json" azure-resource-provider-folder: "data-plane" - examples-directory: ./examples + examples-directory: examples "@azure-tools/typespec-python": package-name: "azure-ai-contentsafety" emitter-output-dir: "{python-sdk-folder}/sdk/{service-directory-name}/{package-name}" diff --git a/specification/cognitiveservices/HealthInsights/healthinsights.openapi/tspconfig.yaml b/specification/cognitiveservices/HealthInsights/healthinsights.openapi/tspconfig.yaml index b7a1eafdba74..e73ba6da5e05 100644 --- a/specification/cognitiveservices/HealthInsights/healthinsights.openapi/tspconfig.yaml +++ b/specification/cognitiveservices/HealthInsights/healthinsights.openapi/tspconfig.yaml @@ -6,7 +6,7 @@ emit: [ options: "@azure-tools/typespec-autorest": - azure-resource-provider-folder: "./data-plane" + azure-resource-provider-folder: "data-plane" emitter-output-dir: "{project-root}/../.." output-file: "{azure-resource-provider-folder}/HealthInsights/{version-status}/{version}/openapi.json" - examples-directory: "./examples" + examples-directory: "examples" diff --git a/specification/contosowidgetmanager/Contoso.WidgetManager/tspconfig.yaml b/specification/contosowidgetmanager/Contoso.WidgetManager/tspconfig.yaml index 13e629352572..be004ad4e475 100644 --- a/specification/contosowidgetmanager/Contoso.WidgetManager/tspconfig.yaml +++ b/specification/contosowidgetmanager/Contoso.WidgetManager/tspconfig.yaml @@ -13,9 +13,9 @@ emit: - "@azure-tools/typespec-autorest" options: "@azure-tools/typespec-autorest": - azure-resource-provider-folder: "./data-plane" + azure-resource-provider-folder: "data-plane" emitter-output-dir: "{project-root}/.." - examples-directory: "./examples" + examples-directory: "examples" output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/widgets.json" "@azure-tools/typespec-python": emitter-output-dir: "{python-sdk-folder}/sdk/{service-directory-name}/{package-name}" diff --git a/specification/eventgrid/Azure.Messaging.EventGrid/tspconfig.yaml b/specification/eventgrid/Azure.Messaging.EventGrid/tspconfig.yaml index 0a4a34857529..6f9ea6f802aa 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid/tspconfig.yaml +++ b/specification/eventgrid/Azure.Messaging.EventGrid/tspconfig.yaml @@ -8,7 +8,7 @@ emit: [ ] options: "@azure-tools/typespec-autorest": - examples-directory: ./examples + examples-directory: examples omit-unreachable-types: true output-file: EventGrid.json emitter-output-dir: "{project-root}/../data-plane/Microsoft.EventGrid/preview/2023-06-01-preview" diff --git a/specification/servicenetworking/ServiceNetworking.Management/tspconfig.yaml b/specification/servicenetworking/ServiceNetworking.Management/tspconfig.yaml index 5785d3d1c879..5c0f61b06969 100644 --- a/specification/servicenetworking/ServiceNetworking.Management/tspconfig.yaml +++ b/specification/servicenetworking/ServiceNetworking.Management/tspconfig.yaml @@ -2,7 +2,7 @@ emit: - "@azure-tools/typespec-autorest" options: "@azure-tools/typespec-autorest": - azure-resource-provider-folder: "./resource-manager" + azure-resource-provider-folder: "resource-manager" emitter-output-dir: "{project-root}/.." - examples-directory: "./examples" + examples-directory: "examples" output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/TrafficController.json" diff --git a/specification/translation/Azure.AI.TextTranslation/tspconfig.yaml b/specification/translation/Azure.AI.TextTranslation/tspconfig.yaml index b02fa0e8a44c..e1a4d78e19f2 100644 --- a/specification/translation/Azure.AI.TextTranslation/tspconfig.yaml +++ b/specification/translation/Azure.AI.TextTranslation/tspconfig.yaml @@ -13,9 +13,9 @@ emit: - "@azure-tools/typespec-autorest" options: "@azure-tools/typespec-autorest": - azure-resource-provider-folder: "./data-plane" + azure-resource-provider-folder: "data-plane" emitter-output-dir: "{project-root}/.." - examples-directory: "./examples" + examples-directory: "examples" output-file: "{azure-resource-provider-folder}/Azure.AI.TextTranslation/stable/v3.0/openapi.json" "@azure-tools/typespec-csharp": clear-output-folder: true