We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4387a34 commit 780ec92Copy full SHA for 780ec92
.chronus/changes/azure-flavor-2025-0-6-13-40-54.md
@@ -0,0 +1,7 @@
1
+---
2
+changeKind: feature
3
+packages:
4
+ - "@azure-tools/typespec-python"
5
6
+
7
+set flavor to azure if not set
packages/typespec-python/src/emitter.ts
@@ -3,5 +3,9 @@ import { PythonEmitterOptions } from "./lib.js";
import { $onEmit as httpClientPythonOnEmit } from "@typespec/http-client-python";
export async function $onEmit(context: EmitContext<PythonEmitterOptions>) {
+ // set flavor to azure if not set for python azure emitter
+ if (context.options.flavor === undefined) {
8
+ context.options.flavor = "azure";
9
+ }
10
await httpClientPythonOnEmit(context);
11
}
0 commit comments