diff --git a/.chronus/changes/python-discriminated-union-2025-10-18-9-43-10.md b/.chronus/changes/python-discriminated-union-2025-10-18-9-43-10.md new file mode 100644 index 00000000000..d0db15882ee --- /dev/null +++ b/.chronus/changes/python-discriminated-union-2025-10-18-9-43-10.md @@ -0,0 +1,7 @@ +--- +changeKind: fix +packages: + - "@typespec/http-client-python" +--- + +Fix import when body parameter is union of models \ No newline at end of file diff --git a/packages/http-client-python/eng/scripts/ci/regenerate.ts b/packages/http-client-python/eng/scripts/ci/regenerate.ts index b13ac4cd1da..406fbc3b5f8 100644 --- a/packages/http-client-python/eng/scripts/ci/regenerate.ts +++ b/packages/http-client-python/eng/scripts/ci/regenerate.ts @@ -22,7 +22,7 @@ const argv = parseArgs({ }); // Add this near the top with other constants -const SKIP_SPECS = ["type/union/discriminated"]; +const SKIP_SPECS = []; // Get the directory of the current file const PLUGIN_DIR = argv.values.pluginDir @@ -272,6 +272,10 @@ const EMITTER_OPTIONS: Record | Record