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

[Tcgc] Fix getLibraryName for anonymous model which is derived from template #1377

Merged
merged 2 commits into from
Aug 15, 2024

Conversation

msyyc
Copy link
Member

@msyyc msyyc commented Aug 15, 2024

After microsoft/typespec#4144, anonymous model type may also have templateMapper arguments. For this scenario, getLibraryName shall not try to generate name from arguments, otherwise may generate model with duplicated name.

@azure-sdk
Copy link
Collaborator

All changed packages have been documented.

  • @azure-tools/typespec-client-generator-core
Show changes

@azure-tools/typespec-client-generator-core - fix ✏️

Fix getLibraryName for anonymous model which is derived from template

@azure-sdk
Copy link
Collaborator

You can try these changes here

🛝 Playground 🌐 Website 📚 Next docs

@msyyc msyyc added this pull request to the merge queue Aug 15, 2024
Merged via the queue into main with commit 29b9538 Aug 15, 2024
22 checks passed
@msyyc msyyc deleted the tcgc-fix-get-library-name branch August 15, 2024 06:06
@weidongxu-microsoft
Copy link
Member

Do we need same fix in release/august branch?

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.

4 participants