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 should give a proper clientNamespace for anonymous models #2052

Open
ArcturusZhang opened this issue Jan 8, 2025 · 0 comments
Open
Assignees
Labels
lib:tcgc Issues for @azure-tools/typespec-client-generator-core library

Comments

@ArcturusZhang
Copy link
Member

In some cases, the clientNamespace is empty in TCGC's output.
In typespec, everything should be defined in a context with a namespace therefore it is abnormal that TCGC is outputting something without a clientNamespace.

Anonymous models have generated names, and properly generated crossLanguageDefinitionId, therefore it is very possible that TCGC could give us so that the downstream generators do not have to make special logic around them.

@ArcturusZhang ArcturusZhang added the lib:tcgc Issues for @azure-tools/typespec-client-generator-core library label Jan 8, 2025
@ArcturusZhang ArcturusZhang self-assigned this Jan 8, 2025
@ArcturusZhang ArcturusZhang marked this as a duplicate of microsoft/typespec#5531 Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lib:tcgc Issues for @azure-tools/typespec-client-generator-core library
Projects
None yet
Development

No branches or pull requests

1 participant