Repository navigation
chore(http-client-csharp): bump TCGC to 0.74.0 and TypeSpec to 1.18.0 - #12552
Open
JoshLove-msft wants to merge 2 commits into
Open
JoshLove-msft wants to merge 2 commits into
JoshLove-msft wants to merge 2 commits into
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
JoshLove-msft
requested review from
Alan Zimmer (alzimmermsft),
Jorge Rangel (jorgerangel-msft),
Jose Arriaga Maldonado (joseharriaga) and
m-nash
as code owners
November 11, 2026 22:42
Jorge Rangel (jorgerangel-msft)
approved these changes
Nov 11, 2026
JoshLove-msft
enabled auto-merge
November 11, 2026 22:43
commit: |
Contributor
|
No changes needing a change description found. |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The upgrade includes a newly discovered scenario whose generated fixture cannot compile due to duplicate PetBase methods and an undeclared kind, requiring exclusion or a generation fix with compilation coverage.
1 open issue
1 file not reviewed
packages/http-client-csharp/package-lock.json: Generated file
What changed in this PR
Aligns the C# HTTP client emitter with TCGC 0.74.0 and TypeSpec 1.18.0, updating dependencies and generated fixtures.
Changes:
- Updates dependency versions, peer ranges, and the package-local npm lockfile.
- Adds generated stubs, project scaffolding, and a launch profile for the discriminated-union inheritance scenario.
- Removes explicit base64 encoding from the response-replacement bytes code model.
Paths below are relative to packages/http-client-csharp/. extends/ denotes generator/TestProjects/Spector/http/type/union/discriminated/extends/.
| File | Description |
|---|---|
package.json |
Updates dependencies and compatible peer ranges. |
package-lock.json |
Locks the updated dependency graph. |
extends/Type.Union.Discriminated.Extends.slnx |
Adds the scenario solution. |
extends/Type.Union.Discriminated.Extends.NuGet.targets |
Adds configuration-schema packaging integration. |
extends/tests/Type.Union.Discriminated.Extends.Tests.csproj |
Adds test-project scaffolding. |
extends/src/Type.Union.Discriminated.Extends.csproj |
Defines the generated client project. |
extends/src/Generated/TypeUnionDiscriminatedExtendsModelFactory.cs |
Adds model-factory stubs. |
extends/src/Generated/schema/ConfigurationSchema.json |
Adds the client configuration schema. |
extends/src/Generated/Recursive.cs |
Adds recursive-union operation stubs. |
extends/src/Generated/Models/UnknownPetBase.Serialization.cs |
Adds fallback-model serialization stubs. |
extends/src/Generated/Models/UnknownPetBase.cs |
Adds the fallback model. |
extends/src/Generated/Models/PetKind.cs |
Defines enum discriminator values. |
extends/src/Generated/Models/PetBase.Serialization.cs |
Adds base-model serialization stubs. |
extends/src/Generated/Models/PetBase.cs |
Adds the enum-discriminated base model. |
extends/src/Generated/Models/Mammal.Serialization.cs |
Adds intermediate-model serialization stubs. |
extends/src/Generated/Models/Mammal.cs |
Adds the intermediate inheritance model. |
extends/src/Generated/Models/Dog.Serialization.cs |
Adds dog serialization stubs. |
extends/src/Generated/Models/Dog.cs |
Adds the dog model. |
extends/src/Generated/Models/Cat.Serialization.cs |
Adds cat serialization stubs. |
extends/src/Generated/Models/Cat.cs |
Adds the cat model. |
extends/src/Generated/Models/_TypeUnionDiscriminatedExtendsContext.cs |
Registers models for reader/writer generation. |
extends/src/Generated/InjectedDiscriminatorOperations.cs |
Adds injected-discriminator operation stubs. |
extends/src/Generated/InjectedDiscriminator.cs |
Adds the injected-discriminator subclient. |
extends/src/Generated/ExtendsClientSettings.cs |
Adds client-settings stubs. |
extends/src/Generated/ExtendsClientOptions.cs |
Adds client-options stubs. |
extends/src/Generated/ExtendsClient.cs |
Adds the scenario’s root client. |
extends/src/Generated/ExplicitDiscriminatorOperations.cs |
Adds explicit-discriminator operation stubs. |
extends/src/Generated/ExplicitDiscriminator.cs |
Adds the explicit-discriminator subclient. |
extends/src/Generated/EnumDiscriminatorOperations.cs |
Adds enum-discriminator operation stubs. |
extends/src/Generated/EnumDiscriminator.cs |
Adds the enum-discriminator subclient. |
extends/src/Generated/CustomDiscriminatorOperations.cs |
Adds custom-discriminator operation stubs. |
extends/src/Generated/CustomDiscriminator.cs |
Adds the custom-discriminator subclient. |
extends/Configuration.json |
Sets the scenario package name. |
generator/TestProjects/Spector/http/azure/client-generator-core/response-replacement/tspCodeModel.json |
Removes explicit base64 encoding metadata. |
generator/Microsoft.TypeSpec.Generator/src/Properties/launchSettings.json |
Adds the scenario’s stub-generation launch profile. |
Review effort: Balanced
Exclude the nested discriminated union scenario from Spector discovery and remove its generated fixture and launch profile. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Updates the C# HTTP client emitter to TCGC 0.74.0 and the matching TypeSpec release.
@azure-tools/typespec-client-generator-coreand@azure-tools/typespec-azure-core0.74.0; TypeSpec packages 1.18.0/0.88.0;@typespec/http-client0.17.1;@typespec/tspd0.78.0; Spector and spec packages bumped. Peer ranges and lockfile are updated.Generate.ps1. Explicitly excluded the uncompilabletype/union/discriminated/extendsSpector scenario and droppedencode: base64from one bytes type in theresponse-replacementcode model.--generated by Copilot