Skip to content

[Python] Add test case for flatten model initialization to check compatibility#9114

Merged
msyyc merged 3 commits intomainfrom
python-flatten-model-initialization-test
Dec 2, 2025
Merged

[Python] Add test case for flatten model initialization to check compatibility#9114
msyyc merged 3 commits intomainfrom
python-flatten-model-initialization-test

Conversation

@msyyc
Copy link
Contributor

@msyyc msyyc commented Dec 1, 2025

fix #8994

We already support SDK users to initialize model with flattened items directly to keep compatibility, this PR adds test cases to cover this scenario.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 1, 2025

Open in StackBlitz

npm i https://pkg.pr.new/microsoft/typespec/@typespec/http@9114
npm i https://pkg.pr.new/microsoft/typespec/@typespec/http-client@9114

commit: 0f66963

@github-actions
Copy link
Contributor

github-actions bot commented Dec 1, 2025

All changed packages have been documented.

  • @typespec/http-client-python
Show changes

@typespec/http-client-python - internal ✏️

Add test case for flatten model initialization to check compatibility

@msyyc msyyc marked this pull request as ready for review December 1, 2025 08:48
@azure-sdk
Copy link
Collaborator

azure-sdk commented Dec 1, 2025

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@msyyc msyyc enabled auto-merge December 2, 2025 02:50
@msyyc msyyc added this pull request to the merge queue Dec 2, 2025
Merged via the queue into main with commit 2a32be5 Dec 2, 2025
38 checks passed
@msyyc msyyc deleted the python-flatten-model-initialization-test branch December 2, 2025 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[python][bug] compatible logic for flatten doesn't work for model initialization

3 participants