Skip to content

Commit 4e42816

Browse files
committed
do not show flavor doc
1 parent 5a74325 commit 4e42816

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

packages/http-client-python/emitter/src/emitter.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ function addDefaultOptions(sdkContext: PythonSdkContext) {
2828
if (!options["package-name"]) {
2929
options["package-name"] = getRootNamespace(sdkContext).replace(/\./g, "-");
3030
}
31+
if (options.flavor !== "azure") {
32+
// if they pass in a flavor other than azure, we want to ignore the value
33+
options.flavor = undefined;
34+
}
35+
if (options.flavor === undefined && sdkContext.emitContext.emitterOutputDir.includes("azure")) {
36+
options.flavor = "azure";
37+
}
3138
if (!options.flavor && sdkContext.emitContext.emitterOutputDir.includes("azure")) {
3239
options.flavor = "azure";
3340
}

packages/http-client-python/emitter/src/lib.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,6 @@ export const PythonEmitterOptionsSchema: JSONSchemaType<PythonEmitterOptions> =
8787
description:
8888
"Whether to generate using `pyodide` instead of `python`. If there is no python installed on your device, we will default to using pyodide to generate the code.",
8989
},
90-
flavor: {
91-
type: "string",
92-
nullable: true,
93-
description: "The flavor of the SDK.",
94-
},
9590
"generate-test": {
9691
type: "boolean",
9792
nullable: true,

0 commit comments

Comments
 (0)