Skip to content

Support deterministic Response-to-Result model naming in C# - #12018

Draft
Jorge Rangel (jorgerangel-msft) with Copilot wants to merge 3 commits into
mainfrom
copilot/support-deterministic-naming-for-model-suffix
Draft

Jorge Rangel (jorgerangel-msft) with Copilot wants to merge 3 commits into
mainfrom
copilot/support-deterministic-naming-for-model-suffix

Conversation

Copilot AI commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Add deterministic naming for C# models ending in Response, replacing the suffix with Result.

  • Naming: Compose with acronym normalization: WidgetResponseWidgetResult, IpResponseIPResult. Restrict the rule to model types.
  • Compatibility: Preserve explicit names, C# customizations, and previous-contract names, including after namespace changes.
  • Collision safety: Retain the original suffix when the target conflicts with another type, customization alias, or generated filename—even across namespaces.
  • Generated output: Update affected models, client signatures, factories, and serializers.
-public partial class WidgetResponse
+public partial class WidgetResult

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Co-authored-by: jorgerangel-msft <102122018+jorgerangel-msft@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 Sep 18, 2026
Co-authored-by: jorgerangel-msft <102122018+jorgerangel-msft@users.noreply.github.com>
Copilot AI changed the title [WIP] Support deterministic naming for model suffix response to result Support deterministic Response-to-Result model naming in C# Sep 18, 2026
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.

Support Deterministic Naming for model suffix Response to Result

2 participants