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]filter out empty namespaces in TCGC output #2110

Open
4 tasks done
live1206 opened this issue Jan 22, 2025 · 1 comment
Open
4 tasks done

[tcgc]filter out empty namespaces in TCGC output #2110

live1206 opened this issue Jan 22, 2025 · 1 comment
Assignees
Labels
lib:tcgc Issues for @azure-tools/typespec-client-generator-core library

Comments

@live1206
Copy link
Member

live1206 commented Jan 22, 2025

Clear and concise description of the problem

Namespaces with no operations and no sub-clients should be filtered out.
Interfaces without operations should still be included because in that case the customer is explicitly defining the interface(garbage in, garbage out),
whereas for namespaces they may be defining a models-only namespace in which case a client is unnecessary.

Checklist

  • Follow our Code of Conduct
  • Check that this issue is about the Azure libraries for typespec. For feature request in the typespec language or core libraries file it in the TypeSpec repo
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
@live1206 live1206 added the lib:tcgc Issues for @azure-tools/typespec-client-generator-core library label Jan 22, 2025
@live1206 live1206 self-assigned this Jan 22, 2025
@live1206
Copy link
Member Author

shifted from microsoft/typespec#5624 (comment)

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