-
Notifications
You must be signed in to change notification settings - Fork 45
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] Need a way to remove operation from TCGC #964
Comments
The original design goal for this was we would have an @scope decorator which simply modified the scope of any given item. I would imagine we could do |
If we handle this in .NET generator directly, the usage calculation in TCGC will miss this part and end into inaccurate usage. Normally, a decorator could be applied to Type, to avoid the over complexity only apply it to Operation as needed now. usage:
validation:
effect: the operation along with everything inside(we have validation to ensure everything inside is not referenced outside this operation) will be removed from the excluded language scopes, and the usage should be calculated correctly based on this. |
Found https://github.com/Azure/typespec-azure-pr/issues/2732 regarding Another option raise from @ArcturusZhang is to use |
After clarification with @m-nash, the negation language scope is not implemented, but not abandoned. |
@live1206 would you be able to contribute a design and implementation for this? Thanks! |
Sure, will add more details with what I have been doing. |
.NET SDK uses |
Reopen since we still have the requirement in Azure/autorest.csharp#5191 |
Please ensure that when an operation is removed, all related items, including models and samples, are also removed. |
Clear and concise description of the problem
For .NET SDK, we have requirement to remove certain operations, such as
Operations.list
should always be removed as duplicated within resource manager.Right now, the best approach we have is below, details
But this operation still exists, .NET SDK need to handle it specifically.
Is it possible to remove this operation from TCGC result? for instance,
Or can we have a new decorator to remove an operation in TCGC?
Checklist
The text was updated successfully, but these errors were encountered: