Skip to content

Add tests for enum query parameters with convenientAPI(false)#9984

Merged
jorgerangel-msft merged 2 commits intomicrosoft:mainfrom
radhgupta:fix/enum-protocol-method-8919
Mar 11, 2026
Merged

Add tests for enum query parameters with convenientAPI(false)#9984
jorgerangel-msft merged 2 commits intomicrosoft:mainfrom
radhgupta:fix/enum-protocol-method-8919

Conversation

@radhgupta
Copy link
Member

Add test coverage to ensure enum types referenced by protocol methods are generated when @convenientAPI(false) is used. This validates the TCGC fix for the issue where enum types were missing from generated output.

Fixes #8919

@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 Mar 10, 2026
@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 10, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@typespec/http-client-csharp@9984

commit: 80f42be

@github-actions
Copy link
Contributor

No changes needing a change description found.

@radhgupta radhgupta changed the title Add regression tests for enum query parameters with convenientAPI(false) Add tests for enum query parameters with convenientAPI(false) Mar 10, 2026
@azure-sdk
Copy link
Collaborator

azure-sdk commented Mar 10, 2026

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

Add test coverage to ensure enum types referenced by protocol methods are
generated when @convenientAPI(false) is used. This validates the TCGC fix
for the issue where enum types were missing from generated output.

Fixes microsoft#8919

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@radhgupta radhgupta force-pushed the fix/enum-protocol-method-8919 branch from 9acad18 to 6af7c05 Compare March 11, 2026 04:33
@jorgerangel-msft jorgerangel-msft added this pull request to the merge queue Mar 11, 2026
Merged via the queue into microsoft:main with commit b74d37d Mar 11, 2026
24 checks passed
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.

[Bug]: Generated .NET client methods do not compile when using @convenientAPI(foo, false) with operations that have enum query parameters

3 participants