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] to provide api for downstream emitters to know if a model is pagedResult #1464

Closed
4 tasks done
qiaozha opened this issue Sep 3, 2024 · 0 comments
Closed
4 tasks done
Assignees
Labels
design:needed A design request has been raised that needs a proposal feature New feature or request lib:tcgc Issues for @azure-tools/typespec-client-generator-core library

Comments

@qiaozha
Copy link
Member

qiaozha commented Sep 3, 2024

Clear and concise description of the problem

In JS modular, we will not expose the @pagedResult models to customers, instead, we will expose an iterator of the itemType in the value list, however, currently, we have no way to know if a model of SdkModelType is pagedResult or not from tcgc,
the only way is to leverage getPagedResult api from compiler, which means we have to use the raw type to get such info.

I wonder if tcgc could help provide apis or extract such info in the SdkModelType for us directly?

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 tadelesh added the lib:tcgc Issues for @azure-tools/typespec-client-generator-core library label Sep 3, 2024
@tadelesh tadelesh self-assigned this Sep 23, 2024
@tadelesh tadelesh added feature New feature or request design:needed A design request has been raised that needs a proposal labels Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design:needed A design request has been raised that needs a proposal feature New feature or request lib:tcgc Issues for @azure-tools/typespec-client-generator-core library
Projects
None yet
Development

No branches or pull requests

2 participants