Skip to content

Simplify generated operation and type names (breaking change)#44

Merged
daviburg merged 6 commits into
mainfrom
feature/simplify-names
Apr 9, 2026
Merged

Simplify generated operation and type names (breaking change)#44
daviburg merged 6 commits into
mainfrom
feature/simplify-names

Conversation

@daviburg
Copy link
Copy Markdown
Member

@daviburg daviburg commented Apr 8, 2026

Summary

Regenerated all 4 connector files with simplified names from the updated CodefulSdkGenerator. This is a breaking change for consumers.

Changes

Methods (version suffixes stripped)

  • SendEmailV2Async -> SendEmailAsync
  • GetEmailV2Async -> GetEmailAsync
  • ListKustoResultsPostAsync -> ListKustoResultsAsync
  • ... and 24 more (see issue for full list)

Triggers (normalized to start with On, natural English)

  • OnNewEmailV3 -> OnNewEmail
  • OnFlaggedEmailV3 -> (dropped, V4 supersedes)
  • OnFlaggedEmailV4 -> OnFlaggedEmail
  • OnNewMentionMeEmailV3 -> OnNewEmailMentioningMe
  • SharedMailboxOnNewEmailV2 -> OnSharedMailboxNewEmail
  • CalendarGetOnUpdatedItemsV3 -> OnCalendarUpdatedItems
  • GetOnNewItems -> OnNewItems (SharePoint)
  • OnGroupMembershipAdd -> OnTeamMemberAdded (Teams)
  • ... and more

Types (per-connector aliases)

  • ClientSendHtmlMessage -> SendEmailInput
  • ClientDraftHtmlMessage -> DraftEmailInput
  • GetAttachmentV2Response -> GetAttachmentResponse

Unreferenced definition types pruned (intentional)

The generator now only emits swagger definition types that are transitively reachable from operations. Previously it emitted ALL swagger definitions, including orphaned types never referenced by any operation. This is an intentional breaking change that removes unused types from the public API surface.

Affected connectors:

  • Office365: ~30 orphaned DTO types removed (e.g., various internal schema types)
  • Teams: PostMessageSchema, PostCardSchema, Dynamic* request/response types removed
  • SharePoint: Several unreferenced DTO types removed

These types were never used by any generated client method — they existed only because the swagger definitions section included them. Consumers who happened to reference them directly will need to remove those references.

Two types remain despite being unused at the C# level (EmailAddressV2, ContactResponseV2) because they are transitively reachable via chains in the swagger. Deeper pruning is tracked in #45.

Wire values unchanged

All operationId strings remain the same (e.g., public const string OnNewEmail = "OnNewEmailV3").

Redundant inline sample removed

Removed samples/SampleConnectorUsage/ — it only printed usage patterns via Console.WriteLine without compiling against the generated types. The dedicated Azure/Connectors-NET-Samples repo has real, working samples.

Validation

  • 96/96 tests pass
  • Tests updated for new names

Closes #43

@daviburg daviburg requested a review from a team as a code owner April 8, 2026 20:05
Copilot AI review requested due to automatic review settings April 8, 2026 20:05
Regenerated all 4 connector files with simplified names:
- Strip version suffixes (V2, V3, V4) from methods, triggers, types
- Normalize triggers to start with On prefix
- Apply per-connector overrides for natural English names
- Drop OnFlaggedEmailV3 (V4 supersedes, identical parameters)
- Rename type aliases (ClientSendHtmlMessage -> SendEmailInput)

Wire values (operationId strings) remain unchanged.

Closes #43
@daviburg daviburg force-pushed the feature/simplify-names branch from 5c63c64 to 637c696 Compare April 8, 2026 20:09
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR regenerates the SDK’s generated connector clients (Office365, Teams, SharePoint Online, Kusto) to simplify operation/type/trigger names (e.g., stripping V2/V3 suffixes from method names) while keeping wire operationId values unchanged. It updates unit tests and constants to match the new public API surface, explicitly introducing a breaking change for consumers.

Changes:

  • Regenerated connector extension files with simplified method/type/trigger names while preserving operationId string values.
  • Updated tests to use the new names and adjusted trigger registries/counts (e.g., removing the flagged-email V3 trigger).
  • Updated CHANGELOG.md release links/entries and tweaked markdownlint configuration.

Reviewed changes

Copilot reviewed 4 out of 8 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
tests/Microsoft.Azure.Connectors.Sdk.Tests/Office365TriggerPayloadTests.cs Updates trigger payload type names and trigger registry assertions for Office365.
tests/Microsoft.Azure.Connectors.Sdk.Tests/Office365ClientTests.cs Updates Office365 client test to renamed GetEmailAsync.
tests/Microsoft.Azure.Connectors.Sdk.Tests/KustoClientTests.cs Updates Kusto client tests to renamed ListKustoResultsAsync.
tests/Microsoft.Azure.Connectors.Sdk.Tests/ConnectorConstantsTests.cs Updates trigger operation constant names/values to new public names.
src/Microsoft.Azure.Connectors.Sdk/Generated/TeamsExtensions.cs Regenerated Teams types/trigger constants/parameter classes with simplified names.
src/Microsoft.Azure.Connectors.Sdk/Generated/SharepointonlineExtensions.cs Regenerated SharePoint Online trigger payload/type aliases and renamed ExtractFolderAsync.
src/Microsoft.Azure.Connectors.Sdk/Generated/Office365Extensions.cs Regenerated Office365 client methods, DTO aliases, and trigger constants/metadata.
src/Microsoft.Azure.Connectors.Sdk/Generated/KustoExtensions.cs Renamed Kusto methods to remove Post suffix.
CHANGELOG.md Adds a 0.2.0-preview.1 entry and updates compare/release links.
.markdownlint.json Adjusts MD024 configuration (siblings_only).

Comment thread src/Microsoft.Azure.Connectors.Sdk/Generated/Office365Extensions.cs
Comment thread src/Microsoft.Azure.Connectors.Sdk/Generated/Office365Extensions.cs
Comment thread src/Microsoft.Azure.Connectors.Sdk/Generated/Office365Extensions.cs Outdated
Comment thread src/Microsoft.Azure.Connectors.Sdk/Generated/TeamsExtensions.cs
Copilot AI review requested due to automatic review settings April 8, 2026 22:45
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 8 changed files in this pull request and generated 2 comments.

Comment thread src/Microsoft.Azure.Connectors.Sdk/Generated/TeamsExtensions.cs
The SampleConnectorUsage project only printed usage patterns via Console.WriteLine
without compiling against the generated types, so it didn't catch breaking changes.
The dedicated Azure/Connectors-NET-Samples repo has real, working samples.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 11 changed files in this pull request and generated 1 comment.

Comment thread src/Microsoft.Azure.Connectors.Sdk/Generated/TeamsExtensions.cs
…ithout response types)

Adds OnWebhookMessageReactionTrigger, OnWebhookKeywordTrigger, OnWebhookAtMentionTrigger,
OnWebhookChatMessageTrigger, OnWebhookNewMessageTrigger to TeamsTriggerOperations.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 11 changed files in this pull request and generated 1 comment.

Comment thread README.md
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 11 changed files in this pull request and generated 1 comment.

Comment thread src/Microsoft.Azure.Connectors.Sdk/Generated/TeamsExtensions.cs
@daviburg daviburg merged commit 3afe7c7 into main Apr 9, 2026
14 checks passed
@daviburg daviburg deleted the feature/simplify-names branch April 9, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Simplify generated operation and type names (breaking change)

2 participants