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

Test empty client generation #5651

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

live1206
Copy link
Contributor

This PR is to verify the MGC behavior to generate empty client without operations.

model Test {
prop: string;
}
@scope("!csharp")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

user can remove operation with latest @scope decorator from TCGC

namespace MyService
{
/// <summary></summary>
public partial class MyServiceClient
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And the empty client is still generated with MGC

This was referenced Jan 17, 2025
@live1206 live1206 closed this Jan 17, 2025
@live1206 live1206 reopened this Jan 17, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added the emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant