Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Text Translation] Fixing tspconfig.yaml #23529

Merged
merged 1 commit into from
Apr 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace TextTranslation;
model TranslateParameters {
...CommonParameters;

@query
@query({format: "multi"})
@doc("""
Specifies the language of the output text. The target language must be one of the supported languages included
in the translation scope. For example, use to=de to translate to German.
Expand Down
34 changes: 24 additions & 10 deletions specification/translation/Azure.AI.TextTranslation/tspconfig.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,37 @@
parameters:
"python-sdk-folder":
default: "{project-root}/azure-sdk-for-python/"
"java-sdk-folder":
default: "{project-root}/azure-sdk-for-java/"
"js-sdk-folder":
default: "{project-root}/azure-sdk-for-js/"
"csharp-sdk-folder":
default: "{project-root}/azure-sdk-for-csharp/"
"service-directory-name":
default: "translation"
emit:
- "@azure-tools/typespec-autorest"
options:
"@azure-tools/typespec-autorest":
"output-file": "openapi.json"
azure-resource-provider-folder: ../data-plane/Azure.AI.TextTranslation
"examples-directory": ./examples
azure-resource-provider-folder: "../data-plane/Azure.AI.TextTranslation"
emitter-output-dir: "{project-root}/.."
examples-directory: "./examples"
output-file: openapi.json
"@azure-tools/typespec-csharp":
clear-output-folder: true
namespace: Azure.AI.Translation.Text
emitter-output-dir: "{csharp-sdk-folder}/sdk/{service-directory-name}/{namespace}/src"
model-namespace: false
namespace: Azure.AI.Translation.Text
"@azure-tools/typespec-python":
"basic-setup-py": true
"package-version": 1.0.0b1
"package-name": azure-ai-translation-text
emitter-output-dir: "{python-sdk-folder}/sdk/{service-directory-name}/{package-name}"
package-name: "azure-ai-translation-text"
"@azure-tools/typespec-java":
partial-update: true
emitter-output-dir: "{java-sdk-folder}/sdk/{service-directory-name}/azure-ai-translation-text"
namespace: com.azure.ai.translation.text
"@azure-tools/typespec-ts":
emitter-output-dir: "{js-sdk-folder}/sdk/{service-directory-name}/ai-translation-text-rest"
generateMetadata: true
generateTest: true
azureSdkForJs: true
packageDetails:
name: "@azure-rest/ai-translation-text"
description: "Microsoft Translation Text"
description: "Microsoft Translation Text"