Applied latest schema of emitter options and parameters.
This commit is contained in:
Ray Chen 2023-06-20 11:13:45 +08:00 коммит произвёл GitHub
Родитель fe056966cf
Коммит ca95eb5342
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 10 добавлений и 18 удалений

Просмотреть файл

@ -1,14 +1,6 @@
parameters:
python-sdk-folder:
default: "{cwd}/azure-sdk-for-python/"
# java-sdk-folder:
# default: "{cwd}/azure-sdk-for-java/"
# js-sdk-folder:
# default: "{cwd}/azure-sdk-for-js/"
csharp-sdk-folder:
default: "{cwd}/azure-sdk-for-csharp/"
service-directory-name:
default: "contentsafety"
service-dir:
default: "sdk/contentsafety"
emit:
- "@azure-tools/typespec-autorest"
options:
@ -18,22 +10,22 @@ options:
azure-resource-provider-folder: "data-plane"
examples-directory: examples
"@azure-tools/typespec-python":
package-name: "azure-ai-contentsafety"
emitter-output-dir: "{python-sdk-folder}/sdk/{service-directory-name}/{package-name}"
package-dir: "azure-ai-contentsafety"
package-name: "{package-dir}"
package-mode: dataplane
"@azure-tools/typespec-csharp":
namespace: "Azure.AI.ContentSafety"
package-dir: "Azure.AI.ContentSafety"
namespace: "{package-dir}"
clear-output-folder: true
model-namespace: false
emitter-output-dir: "{csharp-sdk-folder}/sdk/{service-directory-name}/{namespace}/src"
# "@azure-tools/cadl-typescript":
# emitter-output-dir: "{js-sdk-folder}/sdk/{service-directory-name}/contentsafety-rest"
# "@azure-tools/typespec-ts":
# package-dir: "contentsafety-rest"
# generateMetadata: true
# generateTest: true
# azureSdkForJs: true
# packageDetails:
# name: "@azure-rest/contentsafety-rest"
# description: "ContentSafety Service"
# "@azure-tools/cadl-java":
# emitter-output-dir: "{java-sdk-folder}/sdk/{service-directory-name}/contentsafety"
# "@azure-tools/typespec-java":
# package-dir: "contentsafety"
# namespace: com.contentsafety