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] refine usage in tcgc #1941

Open
tadelesh opened this issue Dec 3, 2024 · 1 comment
Open

[tcgc] refine usage in tcgc #1941

tadelesh opened this issue Dec 3, 2024 · 1 comment
Assignees
Labels
lib:tcgc Issues for @azure-tools/typespec-client-generator-core library

Comments

@tadelesh
Copy link
Member

tadelesh commented Dec 3, 2024

idea is from this pr.
we should separate tcgc's usage into two layers:

  1. for first layer, we just keep input, output usage which is more native.
  2. for second layer, we separate e.g. output to something like the following. It is for client specific output usage.
enum OutputUsage {
  Normal,
  LroInitial,
  Error,
  ...
}

that will be a breaking change, but much extensible and we should make sure each layer orthogonal.
we need to figure out a good data structure to store multi-layer of usages. it must be easy to use.

@tadelesh tadelesh added the lib:tcgc Issues for @azure-tools/typespec-client-generator-core library label Dec 3, 2024
@tadelesh tadelesh self-assigned this Dec 3, 2024
@iscai-msft
Copy link
Contributor

I do think this is a better way to deal with usage, then the current ballooning we have

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

2 participants