Skip to content

Skip internal/private custom constructors for settings and schema gen…#10253

Merged
JoshLove-msft merged 1 commit intomicrosoft:mainfrom
JoshLove-msft:fix/skip-internal-custom-constructors
Apr 2, 2026
Merged

Skip internal/private custom constructors for settings and schema gen…#10253
JoshLove-msft merged 1 commit intomicrosoft:mainfrom
JoshLove-msft:fix/skip-internal-custom-constructors

Conversation

@JoshLove-msft
Copy link
Copy Markdown
Contributor

…eration

Only public custom constructors should be considered when discovering additional client parameters for settings properties, BindCore binding, and ConfigurationSchema.json generation. Internal/private constructors contain infrastructure parameters (HttpPipeline, AzureKeyCredential, sync tokens, etc.) that are not suitable for configuration binding.

Fixes build failures in Azure SDK caused by generating bindings for abstract types and internal infrastructure types.

…eration

Only public custom constructors should be considered when discovering
additional client parameters for settings properties, BindCore binding,
and ConfigurationSchema.json generation. Internal/private constructors
contain infrastructure parameters (HttpPipeline, AzureKeyCredential,
sync tokens, etc.) that are not suitable for configuration binding.

Fixes build failures in Azure SDK caused by generating bindings for
abstract types and internal infrastructure types.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@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 Apr 2, 2026
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Apr 2, 2026

Open in StackBlitz

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

commit: 224b707

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 2, 2026

No changes needing a change description found.

@JoshLove-msft JoshLove-msft added this pull request to the merge queue Apr 2, 2026
Merged via the queue into microsoft:main with commit 0ee3f54 Apr 2, 2026
29 checks passed
@JoshLove-msft JoshLove-msft deleted the fix/skip-internal-custom-constructors branch April 2, 2026 19:47
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.

2 participants