Skip to content

Allow extending ScmModelProvider - #11631

Open
JoshLove-msft wants to merge 1 commit into
microsoft:mainfrom
JoshLove-msft:josh/unseal-scm-model-provider
Open

Allow extending ScmModelProvider#11631
JoshLove-msft wants to merge 1 commit into
microsoft:mainfrom
JoshLove-msft:josh/unseal-scm-model-provider

Conversation

@JoshLove-msft

Copy link
Copy Markdown
Contributor

Summary

  • make \ScmModelProvider\ inheritable
  • add regression coverage proving derived providers can be constructed

This allows specialized generators such as the Azure management generator to retain their model-provider customizations while inheriting shared ClientModel behavior, including dynamic model patch support.

Fixes the upstream prerequisite for Azure/azure-sdk-for-net#61851.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 869e9afe-6837-4c0c-ad5c-a87ab58a905d
@pkg-pr-new

pkg-pr-new Bot commented Aug 12, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: ca1b5e3

@github-actions

Copy link
Copy Markdown
Contributor

No changes needing a change description found.

@JoshLove-msft

Copy link
Copy Markdown
Contributor Author

This unblocks Azure/azure-sdk-for-net#61958, where management-specific model providers now inherit shared dynamic-model behavior instead of conditionally replacing their provider type.

--generated by Copilot

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