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

Add ClientInitialization usage for models #1518

Open
4 tasks done
m-nash opened this issue Sep 11, 2024 · 1 comment
Open
4 tasks done

Add ClientInitialization usage for models #1518

m-nash opened this issue Sep 11, 2024 · 1 comment
Assignees
Labels
feature New feature or request lib:tcgc Issues for @azure-tools/typespec-client-generator-core library

Comments

@m-nash
Copy link
Member

m-nash commented Sep 11, 2024

Clear and concise description of the problem

Right now getAllModels does not include models which have usage as none. For the client initialization model the usage is none since it isn't used in any of the service operations. We should introduce a new usage flag and apply it to the client initialization model so that it is returned by getAllModels.

Emitters who don't do anything with this model can easily ignore it by looking for this usage flag.

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.
@tadelesh
Copy link
Member

with this #2027, tcgc deprecate the SdkInitializationType type and add SdkClientInitializationMethod. the options model should be language specific, so tcgc does not add that anymore.

@tadelesh tadelesh reopened this Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request lib:tcgc Issues for @azure-tools/typespec-client-generator-core library
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants